From f6c125c4537c805f6ff88d452b736b97b954c50e Mon Sep 17 00:00:00 2001 From: Goostaf Date: Sun, 23 Jun 2024 20:10:48 +0200 Subject: [PATCH] Return 404 if locale is invalid on root (#81) * Return 404 if locale is invalid on root * Disable dynamic parameters --- src/app/[locale]/layout.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index e23dbd3e..ee38a286 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -29,6 +29,8 @@ export function generateStaticParams() { return i18nConfig.locales.map((locale) => ({ locale })); } +export const dynamicParams = false; + export default function RootLayout({ children, params: { locale }