diff --git a/ui/dl/app/[[...slug]]/page.tsx b/ui/dl/app/[[...slug]]/page.tsx index c8df717..75965f4 100644 --- a/ui/dl/app/[[...slug]]/page.tsx +++ b/ui/dl/app/[[...slug]]/page.tsx @@ -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: [] }]; }