mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-11 15:10:45 +01:00
Merge branch 'master' into webpack5
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