From 59bc1d3acedd8b547445c5a8065239b2d9cf99d0 Mon Sep 17 00:00:00 2001 From: trafficlunar Date: Thu, 16 Apr 2026 22:39:12 +0100 Subject: [PATCH] fix: prerender mii and profile pages --- frontend/src/pages/mii/[id].astro | 6 +++++- frontend/src/pages/profile/[id].astro | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/mii/[id].astro b/frontend/src/pages/mii/[id].astro index dad539e..84f13f8 100644 --- a/frontend/src/pages/mii/[id].astro +++ b/frontend/src/pages/mii/[id].astro @@ -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) }, + })); +} --- diff --git a/frontend/src/pages/profile/[id].astro b/frontend/src/pages/profile/[id].astro index cc15f16..5b18878 100644 --- a/frontend/src/pages/profile/[id].astro +++ b/frontend/src/pages/profile/[id].astro @@ -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) }, + })); +} ---