Remove console.log

pull/8471/head
Kamran Ahmed 6 days ago
parent 7f28a755dc
commit 2cee3a8859
  1. 3
      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(

Loading…
Cancel
Save