Skip to content

Commit

Permalink
docs: Use SSG for App Router example
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Jun 19, 2023
1 parent cae135d commit f6dd1fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/example-next-13/src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f6dd1fb

Please sign in to comment.