mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 20:21:50 +02:00
Fix broken build
This commit is contained in:
@@ -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`);
|
||||
|
Reference in New Issue
Block a user