Skip to content

Commit 565bf4d

Browse files
committed
10y static render
1 parent c46ea10 commit 565bf4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/[locale]/10years/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
parseStoryDates,
4141
} from "./_components/utils"
4242

43+
import { routing } from "@/i18n/routing"
4344
import { fetch10YearEvents } from "@/lib/api/fetch10YearEvents"
4445
import { fetch10YearStories } from "@/lib/api/fetch10YearStories"
4546
import { fetchTorchHolders } from "@/lib/api/fetchTorchHolders"
@@ -491,6 +492,12 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
491492
)
492493
}
493494

495+
export async function generateStaticParams() {
496+
return routing.locales.map((locale) => ({
497+
locale,
498+
}))
499+
}
500+
494501
export async function generateMetadata({
495502
params,
496503
}: {

0 commit comments

Comments
 (0)