From e0b1c374e4465a331ba6449a889f0e758f425e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 25 Feb 2022 14:43:10 -0500 Subject: [PATCH] feat: resolve paths for staticDirs as well --- src/plugins/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data.js b/src/plugins/data.js index 8eb1c79452..565b8ba623 100644 --- a/src/plugins/data.js +++ b/src/plugins/data.js @@ -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()) {