From 6c12aefe2ff540639d985d747bfc986a3c0652ba Mon Sep 17 00:00:00 2001 From: raon0211 Date: Tue, 9 Apr 2024 23:06:57 +0900 Subject: [PATCH] chore: test --- docs/src/middleware.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/middleware.ts b/docs/src/middleware.ts index 3c11cced..d5e7d072 100644 --- a/docs/src/middleware.ts +++ b/docs/src/middleware.ts @@ -29,7 +29,6 @@ function getCookie( export function middleware(request: NextRequest) { const { nextUrl } = request - console.log({ nextUrl }); if (/\/_meta(\.[a-z]{2}-[A-Z]{2})?$/.test(nextUrl.pathname)) { const url = nextUrl.clone() @@ -100,6 +99,6 @@ export function middleware(request: NextRequest) { nextUrl.defaultLocale ) ) - return NextResponse.rewrite(new URL(url, request.url)) + return NextResponse.rewrite(new URL('/index.en', request.url)) } } \ No newline at end of file