1
0
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:
Kamran Ahmed
2023-02-21 12:44:44 +00:00
parent b6a0255f12
commit e45c49a404
2 changed files with 2 additions and 2 deletions

View File

@@ -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`);

View File

@@ -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`);