oops - fix middleware
All checks were successful
deploy / deploy (push) Successful in 47s

This commit is contained in:
Lee 2023-10-24 11:22:59 +01:00
parent ab3ed98c71
commit 54c9d866b8

@ -16,9 +16,6 @@ export function middleware(request: NextRequest) {
} }
} }
if (pathname == "/ranking/global") {
return NextResponse.redirect(new URL("/ranking/global", request.url));
}
const requestHeaders = new Headers(request.headers); const requestHeaders = new Headers(request.headers);
requestHeaders.set("x-url", request.url); requestHeaders.set("x-url", request.url);
return NextResponse.next({ return NextResponse.next({