mirror of https://github.com/kortix-ai/suna.git
Merge pull request #1614 from ffrankan/fix/middleware-env-case-handling
fix(middleware): improve case-insensitive env mode checking
This commit is contained in:
commit
2eb021fcdd
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue