Jetzt aber

This commit is contained in:
BuildTools
2025-12-20 00:08:20 +01:00
parent 6a03a46837
commit f765e9de71
2 changed files with 2 additions and 3 deletions

View File

@@ -7,12 +7,12 @@ export const metadata: Metadata = {
description: '' description: ''
}; };
type Props = Readonly<{ type Props = {
params: { params: {
locale: string; locale: string;
}, },
children: React.ReactNode; children: React.ReactNode;
}>; };
export default async function RootLayout({ params, children }: Props) { export default async function RootLayout({ params, children }: Props) {
const { locale } = await params; const { locale } = await params;

View File

@@ -7,7 +7,6 @@ export const config = {
] ]
}; };
// Proxy für geschützte Routen + i18n + Cookies
export async function proxy(request: NextRequest) { export async function proxy(request: NextRequest) {
const locale = routing.locales.find(locale => const locale = routing.locales.find(locale =>
request.nextUrl.pathname.startsWith(`/${locale}`) request.nextUrl.pathname.startsWith(`/${locale}`)