Guide
Lovable sign-in works in the preview but fails on the published app
In the preview, sign-in works. On the published app or your custom domain, people cannot sign in, or land on the wrong address afterwards.
Find out in 2 minutes which of these is breaking your app. Test my app, free
Why it happens
After sign-in, the service sends people back only to addresses on an approved list. Lovable's docs say that if sign-in works in preview but breaks on the published app or custom domain, these addresses are usually the reason.
Possible causes
- The published address or custom domain is missing from the approved redirect list.
- The default address (Site URL) was set by hand earlier, so Lovable leaves it unchanged and it does not point at the published address.
- The app uses your own Supabase project, which gets no automatic updates, so its address list was never changed.
- Google sign-in with your own Google credentials: the new domain's return address was never added on the Google side or selected in Lovable.
You can't see it yourself
You're signed in, your customers aren't. You are already signed in, or you sign in from the preview, where the address is already approved.
Find out in 2 minutes which of these is breaking your app. Test my app, free
Related: Sign-up or login broken after publishing: users bounce back to login or land on localhost · "Sign in with Google" fails for new people on my live app · New users sign up, then land back on the login page or see an error
VibeFix is independent. Lovable, Bolt, Replit, Base44, v0, Supabase, Clerk and Vercel are trademarks of their owners.
Still stuck?
Paste your app’s link for a free sign-up check, no account needed. An AI agent signs up to your live app as a brand-new person, on a phone and a computer, and tells you whether a new person can finish.