Preview Works, Live Breaks?
Your Lovable app runs in preview but falls over on the live URL — vanishing env vars, a custom domain stuck on “Setting up”, 404s on every route, or a deploy stuck serving an old commit. Find the exact fix below.
Deployment & hosting fixes
Every guide names the exact deploy symptom, explains the root cause Lovable hides, and gives you the copy-paste config to ship to production — Vercel, Netlify, Cloudflare, or your own server.
Lovable Works in Preview but Breaks on the Live URL
Preview works fine but the live URL shows errors, 404s, or redirects to localhost? Here's why, and the exact steps to fix each deployment break.
Read the guide →DeploymentLovable Env Vars Vanish on Deploy? Fix the Vanishing Env-Var Before Your Login Breaks
Your VITE_SUPABASE_URL and anon key work in the Lovable editor but break in production, and login redirects to localhost. Here's the exact fix.
Read the guide →DeploymentLovable Custom Domain Stuck on Setting Up? Here's How to Unstick It
Your Lovable custom domain is stuck on Setting up or Verifying for hours? Here's the exact DNS fix — A, TXT, and the AAAA conflict that breaks it.
Read the guide →DeploymentLovable App Returns 404 on Refresh or Deep Link? The SPA Routing Fix
Your Lovable app 404s when you refresh a page or open a deep link on Vercel or Netlify. Here is the copy-paste SPA rewrite config that fixes it.
Read the guide →DeploymentLovable Won't Publish? How to Break the Stale-Commit Deploy and Get Your Changes Live
Lovable shows 'Oops! couldn't publish your site' or keeps serving an old commit? Here's how to fix the Stale-Commit Deploy and ship the real build.
Read the guide →DeploymentWhy Your Lovable Site Is Not Showing Up on Google: The SPA Indexing Problem
Your Lovable site is not showing up on Google because it ships as a client-rendered SPA — Googlebot sees an empty shell. Here is the durable SSR fix.
Read the guide →App down or leaking data? Get an expert on it within 24–48h.
Book a free 30-minute audit call. We'll diagnose what's wrong and tell you exactly what it costs to fix.