Skip to content

Commit

Permalink
chore: Support i18n and English docs
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Apr 9, 2024
1 parent 7377f14 commit 7bf98d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

0 comments on commit 7bf98d4

Please sign in to comment.