Fix broken build

pull/3475/head
Kamran Ahmed 2 years ago
parent b6a0255f12
commit e45c49a404
  1. 2
      src/lib/best-practice-topic.ts
  2. 2
      src/lib/roadmap-topic.ts

@ -39,7 +39,7 @@ export async function getAllBestPracticeTopicFiles(): Promise<Record<string, Bes
const fileHeadings = fileContent.getHeadings();
const firstHeading = fileHeadings[0];
const [, bestPracticeId] = filePath.match(/^\/src\/best-practices\/(.+)?\/content\/(.+)?$/) || [];
const [, bestPracticeId] = filePath.match(/^\/src\/data\/best-practices\/(.+)?\/content\/(.+)?$/) || [];
const topicUrl = generateTopicUrl(filePath);
const currentBestPractice = await import(`../data/best-practices/${bestPracticeId}/${bestPracticeId}.md`);

@ -86,7 +86,7 @@ export async function getRoadmapTopicFiles(): Promise<Record<string, RoadmapTopi
const fileHeadings = fileContent.getHeadings();
const firstHeading = fileHeadings[0];
const [, roadmapId] = filePath.match(/^\/src\/roadmaps\/(.+)?\/content\/(.+)?$/) || [];
const [, roadmapId] = filePath.match(/^\/src\/data\/roadmaps\/(.+)?\/content\/(.+)?$/) || [];
const topicUrl = generateTopicUrl(filePath);
const currentRoadmap = await import(`../data/roadmaps/${roadmapId}/${roadmapId}.md`);

Loading…
Cancel
Save