From e4f53ed90e8fe3b32d65d7ea11d711ea4e5562d7 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 7 Apr 2025 16:20:04 +0100 Subject: [PATCH] Fix path --- src/pages/[roadmapId]/[...topicId].astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/[roadmapId]/[...topicId].astro b/src/pages/[roadmapId]/[...topicId].astro index fa2602ae3..f095b7a58 100644 --- a/src/pages/[roadmapId]/[...topicId].astro +++ b/src/pages/[roadmapId]/[...topicId].astro @@ -19,7 +19,8 @@ const topicPath = Array.isArray(topicId) ? topicId.join('/') : topicId; // Get the project root directory const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -const projectRoot = path.resolve(__dirname, '../../..'); +// hack to make it work. TODO: Fix +const projectRoot = path.resolve(__dirname, '../../..').replace(/dist$/, ''); // Construct the path to the markdown file let contentPath = path.join(