Marked as helpful by the asker
Good news: it's a Vite + React app, Vercel handles it well. Checklist before you switch the domain:
- Deep links. Refresh on a sub page of the Vercel preview. If you get a 404, add
vercel.json:{ "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] } - Supabase keys. Lovable often hardcodes the Supabase URL and anon key in
src/integrations/supabase/client.ts. That's fine (the anon key is public), just know it's there, not in env vars. - Auth URLs. In Supabase → Authentication → URL Configuration, add your Vercel preview URL and your domain to Redirect URLs, otherwise login/magic links redirect to the old Lovable URL.
- Test an order end to end on the preview URL.
- Then move the domain. Do it at a quiet hour. The old Lovable URL keeps working meanwhile, so nothing is lost.
Editing in Lovable keeps working: it pushes to GitHub, Vercel deploys from GitHub.
Refresh gave a 404 exactly like you said, added the file. Did the switch Sunday night, first order came in Monday 7am on the new domain! bakery_bo · edited
Congrats on the first order! rafa_dev · edited
Also update the Site URL in Supabase to the new domain, that's what email templates use. hannah_reyes · edited