Skip to content

Commit

Permalink
fix(middleware): don't lowercase /lego paths
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 7, 2024
1 parent 8a1e621 commit f8402ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export const config = {
}

export function middleware(request: NextRequest) {
if (request.nextUrl.pathname === request.nextUrl.pathname.toLowerCase()) {
if (
request.nextUrl.pathname === request.nextUrl.pathname.toLowerCase() ||
request.nextUrl.pathname.includes("/lego")
) {
return NextResponse.next()
}

Expand Down

0 comments on commit f8402ec

Please sign in to comment.