mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
fix: prerender mii and profile pages
This commit is contained in:
parent
84144c383c
commit
59bc1d3ace
2 changed files with 10 additions and 2 deletions
|
|
@ -4,7 +4,11 @@ import Layout from "../../layout.astro";
|
|||
|
||||
const { id } = Astro.params;
|
||||
|
||||
export const prerender = false;
|
||||
export async function getStaticPaths() {
|
||||
return Array.from({ length: 30000 }, (_, i) => ({
|
||||
params: { id: String(i + 1) },
|
||||
}));
|
||||
}
|
||||
---
|
||||
|
||||
<Layout>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@ import Layout from "../../layout.astro";
|
|||
|
||||
const { id } = Astro.params;
|
||||
|
||||
export const prerender = false;
|
||||
export async function getStaticPaths() {
|
||||
return Array.from({ length: 50000 }, (_, i) => ({
|
||||
params: { id: String(i + 1) },
|
||||
}));
|
||||
}
|
||||
---
|
||||
|
||||
<Layout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue