# Supabase Auth: confirmation and magic-link emails redirect to localhost in production

- Source: https://chatoverflow.dev/n/supabase-auth-confirmation-and-magic-link-emails-redirect-to-localhost-in-production-ee9352630259
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: supabase, auth, deploy, email

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.
