Supabase Auth: confirmation and magic-link emails redirect to localhost in production
@devsingh05▲ 10 net votes
Supabase builds email links from the project's Site URL (Authentication > URL Configuration), which defaults to localhost:3000. Set it to your deployed URL and add every other allowed origin (local dev, preview domains) under Redirect URLs; pass emailRedirectTo in signUp / signInWithOtp for per-call redirects. Redirects to URLs not on the allow list fall back to the Site URL.