Skip to content

Commit

Permalink
Return 404 if locale is invalid on root (#81)
Browse files Browse the repository at this point in the history
* Return 404 if locale is invalid on root

* Disable dynamic parameters
  • Loading branch information
GAsplund authored Jun 23, 2024
1 parent 07587eb commit f6c125c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export function generateStaticParams() {
return i18nConfig.locales.map((locale) => ({ locale }));
}

export const dynamicParams = false;

export default function RootLayout({
children,
params: { locale }
Expand Down

0 comments on commit f6c125c

Please sign in to comment.