fix: pre build static pages

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-04 08:50:01 +01:00
parent 2468dc29ff
commit 64afd04f7b
2 changed files with 40 additions and 19 deletions

View File

@@ -29,6 +29,13 @@ export async function generateMetadata({
});
}
export async function generateStaticParams() {
const pages = await pageSource.getPages();
return pages.map((page) => ({
pages: page.url.split('/').slice(1),
}));
}
export default async function Page({
params,
}: {