chore: add generateStaticParams for dl page (#220)

This commit is contained in:
shenlan 2025-09-15 15:00:52 +08:00 committed by GitHub
parent 28dce9aede
commit b41f1ba8b6

View File

@ -33,7 +33,9 @@ async function getDir(path: string) {
return res.json();
}
export function generateStaticParams() {
// Pre-render the root listing during the static export. Additional paths are
// handled entirely on the client, so only an empty slug is needed here.
export async function generateStaticParams() {
return [{ slug: [] }];
}