From f765e9de71037f514d2d7fb3150cc1958a7e9437 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 20 Dec 2025 00:08:20 +0100 Subject: [PATCH] Jetzt aber --- app/layout.tsx | 4 ++-- proxy.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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}`)