feat: resolve paths for staticDirs as well

isekai-main
Barış Soner Uşaklı 3 years ago
parent 52ee5ce8e1
commit e0b1c374e4

@ -97,7 +97,7 @@ Data.getStaticDirectories = async function (pluginData) {
return;
}
const dirPath = path.join(pluginData.path, pluginData.staticDirs[route]);
const dirPath = await resolveModulePath(pluginData.path, pluginData.staticDirs[route]);
try {
const stats = await fs.promises.stat(dirPath);
if (!stats.isDirectory()) {

Loading…
Cancel
Save