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

This commit is contained in:
Lee 2023-10-24 09:52:21 +01:00
parent 19fa265166
commit f421716f5c

@ -9,7 +9,10 @@ export function middleware(request: NextRequest) {
if (pathname == "/") { if (pathname == "/") {
if (playerIdCookie) { if (playerIdCookie) {
return NextResponse.redirect( return NextResponse.redirect(
new URL(`/player/${playerIdCookie.value}`, request.url), new URL(
`/player/${playerIdCookie.value}/scoresaber/top/1`,
request.url,
),
); );
} else { } else {
return NextResponse.redirect(new URL("/search", request.url)); return NextResponse.redirect(new URL("/search", request.url));