Originally published on AppFirstAid .
Short answer: your login provider still thinks your app lives at the old address. In Supabase, go to Authentication β URL Configuration, set the Site URL to your new domain and add it to Redirect URLs (for example https://yourdomain.com/** ). If your app asks to send people somewhere that isn't on that list, Supabase quietly sends them to the Site URL instead, which is often the old preview link or localhost.
Signs this is your problem
The confirmation or password-reset email opens the preview link, localhost , or a page that says the link is invalid.
Google sign-in finishes, then lands on the old address.
Everything works on the preview link but not on your real domain, or the reverse.
Fix it in Supabase
Open your project, then Authentication β URL Configuration.
Set Site URL to the address customers use, like https://yourdomain.com .β¦