diff --git a/app/layout.tsx b/app/layout.tsx index ba3ed20..79ea0d2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,12 +7,12 @@ export const metadata: Metadata = { description: '' }; -type Props = Readonly<{ +type Props = { params: { locale: string; }, children: React.ReactNode; -}>; +}; export default async function RootLayout({ params, children }: Props) { const { locale } = await params; diff --git a/proxy.ts b/proxy.ts index 6beee82..259cab9 100644 --- a/proxy.ts +++ b/proxy.ts @@ -7,7 +7,6 @@ export const config = { ] }; -// Proxy für geschützte Routen + i18n + Cookies export async function proxy(request: NextRequest) { const locale = routing.locales.find(locale => request.nextUrl.pathname.startsWith(`/${locale}`)