Fix broken build
This commit is contained in:
1 parent
b6a0255f12
commit
e45c49a404
2 files changed
+2
-2
No files matched your search
@@ -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