fix: prerender mii and profile pages

This commit is contained in:
trafficlunar 2026-04-16 22:39:12 +01:00
parent 84144c383c
commit 59bc1d3ace
2 changed files with 10 additions and 2 deletions

View file

@ -4,7 +4,11 @@ import Layout from "../../layout.astro";
const { id } = Astro.params; const { id } = Astro.params;
export const prerender = false; export async function getStaticPaths() {
return Array.from({ length: 30000 }, (_, i) => ({
params: { id: String(i + 1) },
}));
}
--- ---
<Layout> <Layout>

View file

@ -4,7 +4,11 @@ import Layout from "../../layout.astro";
const { id } = Astro.params; const { id } = Astro.params;
export const prerender = false; export async function getStaticPaths() {
return Array.from({ length: 50000 }, (_, i) => ({
params: { id: String(i + 1) },
}));
}
--- ---
<Layout> <Layout>