Login loop or confirm-email link opens localhost after deploying
The short fix, its sources, and where this limit comes from.
LovableBolt.newv0Supabase
Quick fix
In Supabase > Authentication > URL Configuration, set Site URL to your live domain and add it (plus preview/localhost) to Redirect URLs. The AI can't see this setting, so prompting won't fix it.
Stops a prompt loop; the AI can't fix this by prompting.
Sources
- dylancaponi.github.io/vibe-code-rescue/fixes/login-loop-redirect-localhost.html
- supabase.com/docs/guides/auth/redirect-urls