From 2cee3a8859488c59d85b6411004a30c6a64e6cb4 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 7 Apr 2025 17:11:46 +0100 Subject: [PATCH] Remove console.log --- src/pages/[roadmapId]/[...topicId].astro | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/[roadmapId]/[...topicId].astro b/src/pages/[roadmapId]/[...topicId].astro index dbda28046..8682a1e2d 100644 --- a/src/pages/[roadmapId]/[...topicId].astro +++ b/src/pages/[roadmapId]/[...topicId].astro @@ -22,6 +22,7 @@ const topicPath = Array.isArray(topicId) ? topicId.join('/') : topicId; // Get the project root directory const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); + // hack to make it work. TODO: Fix const projectRoot = path.resolve(__dirname, '../../..').replace(/dist$/, ''); @@ -36,8 +37,6 @@ let contentPath = path.join( `${topicPath}.md`, ); -console.log(contentPath); - // Check if file exists if (!fs.existsSync(contentPath)) { const indexFilePath = path.join(