Fix pre-rendered 404

This commit is contained in:
Kamran Ahmed committed 2025-04-07 16:28:09 +01:00
1 parent e4f53ed90e
commit a2e83e909e
2 files changed
+3

No files matched your search

+1
View File
@@ -1 +1,2 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
+2
View File
@@ -3,6 +3,8 @@ import Icon from '../components/AstroIcon.astro';
import BaseLayout from '../layouts/BaseLayout.astro';
import { getRoadmapIds } from '../lib/roadmap';
export const prerender = true;
const roadmapIds = await getRoadmapIds();
const legacyRoadmapUrls = [...roadmapIds.map((id) => `/${id}/`), '/roadmaps/'];
---