pull/8471/head
Kamran Ahmed 6 days ago
parent 5e836ab7a5
commit e4f53ed90e
  1. 3
      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(

Loading…
Cancel
Save