From f6dd1fbe989aee7d4f6329003e8c69b77e28f561 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Mon, 19 Jun 2023 13:37:47 +0200 Subject: [PATCH] docs: Use SSG for App Router example --- examples/example-next-13/src/app/[locale]/layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/example-next-13/src/app/[locale]/layout.tsx b/examples/example-next-13/src/app/[locale]/layout.tsx index eb8e4300a..f0ce38e32 100644 --- a/examples/example-next-13/src/app/[locale]/layout.tsx +++ b/examples/example-next-13/src/app/[locale]/layout.tsx @@ -20,6 +20,10 @@ async function getMessages(locale: string) { } } +export async function generateStaticParams() { + return ['en', 'de'].map((locale) => ({locale})); +} + export async function generateMetadata({params: {locale}}: Props) { const messages = await getMessages(locale);