Fixing "supabaseUrl is required" when next build fails (tested repro, Next 16 + supabase-js 2.109)
This story is from 2026-10-20. It is preserved in the archive; the latest stories are on the live feed.
If your AI-built (or hand-built) Next.js app dies during next build with Error: supabaseUrl is required. , the usual culprit is one line: a Supabase client created at the top level of a route file, evaluated at build time when your env vars aren't there. We reproduced it on a small synthetic app, a…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-20 02:46 · DEV Community — AI
Fixing "supabaseUrl is required" when next build fails (tested repro, Next 16 + supabase-js 2.109)