From 7bf98d479e16eb4fcd330e2df104068c1e898896 Mon Sep 17 00:00:00 2001 From: raon0211 Date: Tue, 9 Apr 2024 22:50:51 +0900 Subject: [PATCH] chore: Support i18n and English docs --- docs/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/middleware.ts b/docs/src/middleware.ts index 9f38dc4b..8e459658 100644 --- a/docs/src/middleware.ts +++ b/docs/src/middleware.ts @@ -123,7 +123,7 @@ export function middleware(request: NextRequest) { `${pathname}.${finalLocale}${nextUrl.search}`, finalLocale, nextUrl.defaultLocale - ), url}); + ), url, destination:new URL(url, request.url).toString()}); return NextResponse.rewrite(new URL(url, request.url)) } } \ No newline at end of file