Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Apr 9, 2024
1 parent 562aeba commit 6c12aef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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))
}
}

0 comments on commit 6c12aef

Please sign in to comment.