mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
feat: resolve paths for staticDirs as well
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user