Merge pull request #1614 from ffrankan/fix/middleware-env-case-handling

fix(middleware): improve case-insensitive env mode checking
This commit is contained in:
Marko Kraemer 2025-09-11 16:32:29 -07:00 committed by GitHub
commit 2eb021fcdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ export async function middleware(request: NextRequest) {
return NextResponse.redirect(url);
}
const isLocalMode = process.env.NEXT_PUBLIC_ENV_MODE === 'local'
const isLocalMode = process.env.NEXT_PUBLIC_ENV_MODE?.toLowerCase() === 'local'
if (isLocalMode) {
return supabaseResponse;
}