Jetzt aber
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
1
proxy.ts
1
proxy.ts
@@ -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}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user