Fix pre-rendered 404
This commit is contained in:
1 parent
e4f53ed90e
commit
a2e83e909e
2 files changed
+3
No files matched your search
Vendored
+1
@@ -1 +1,2 @@
|
||||
/// <reference types="astro/client" />
|
||||
/// <reference path="content.d.ts" />
|
||||
@@ -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/'];
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user