Merge branch 'iipbs/wr/dev'
This commit is contained in:
@@ -18,6 +18,9 @@ export function middleware(req: NextRequest) {
|
||||
console.log(`[Middleware] Request URL: ${req.url}`);
|
||||
const searchParams = req.nextUrl.searchParams;
|
||||
|
||||
// if (pathname === "/")
|
||||
// return NextResponse.redirect(new URL("/map/mainMap", req.url));
|
||||
|
||||
if (pathname.startsWith("/server")) {
|
||||
const decodedParams = Array.from(searchParams.entries())
|
||||
.map(([key, value]) => `${key}=${decodeURIComponent(value)}`)
|
||||
|
||||
Reference in New Issue
Block a user