Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 3712d29

Browse files
committed
Go back to original implementation as it works
1 parent 140417e commit 3712d29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

middleware.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { NextResponse } from 'next/server'
22

33
export async function middleware(req) {
4-
console.log('REQUEST RECEIVED', req)
54
const { nextUrl: url, geo } = req
65
url.searchParams.set('country', geo.country)
7-
return NextResponse.redirect(url)
6+
return NextResponse.rewrite(url)
87
}

0 commit comments

Comments
 (0)