Files
obc-terrassement/middleware.ts
Claude 7a5871d344 fix: add error handling to middleware to prevent INVOCATION_FAILED
- Check if Supabase env vars are configured before using them
- Wrap Supabase auth call in try/catch to prevent 500 crashes
- Graceful fallback: pass through on error instead of crashing

https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
2026-02-08 14:06:42 +00:00

2.7 KiB