Lovable or Bolt app works in preview but broken after publishing? How to fix it (2026)
Prices and facts checked on each tool's official site. Plans change often, so confirm before you pay.
Everything works in the editor preview. Then you publish, open the live link, and something's off: the page is blank, it shows an old version, refreshing a page gives a 404, or sign-up emails send people to localhost. This is one of the most common walls people hit right before launch. Here are the five usual causes, how to spot each one, and when it's worth getting help.
Quick answer
First, republish: neither Lovable nor Bolt pushes changes live on its own. If it's still broken, check Supabase's Site URL and Redirect URLs (sign-in problems), your environment variables on the host (blank page or missing data), and, if you moved off the builder's own hosting, the single-page app rewrite (404 on refresh). If none of that fixes it, or the app takes payments or user data, have a person check it before you launch.
Match your symptom to the cause
| What you see on the live site | Most likely cause |
|---|---|
| An old version, missing your latest changes | Changes weren't republished |
| Sign-up confirmation or password reset links open localhost or the preview | Supabase Site URL / Redirect URLs still set for development |
| Blank white page, or data that never loads | Missing environment variables or secrets on the host, or a build error |
| Home page loads, but refreshing any other page gives a 404 | Missing single-page app rewrite on Netlify or another host |
| Site won't open at all on some networks (bolt.host) | Your network is blocking the bolt.host domain |
1. Your changes weren't republished
Both builders deploy a snapshot. In Lovable, later edits only go live when you click Publish, then Publish changes; a small dot on the Publish button means you have unpublished changes, and accepting a draft isn't publishing. In Bolt, open the Publish menu and click Update. Also make sure you're opening the exact published address: Lovable's lovable.app address uses your project's URL subdomain, which can differ from the project name.
2. Sign-in links point to localhost or the preview
If your app uses Supabase sign-in, Supabase sends people to the Site URL after email confirmation and password resets unless the code says otherwise. Supabase's docs say to change it from http://localhost:3000 to your production URL. In your Supabase dashboard, go to Authentication, URL Configuration, set the Site URL to your live address (for example https://yourapp.lovable.app or your own domain), and add every live address you use to Redirect URLs. Google or GitHub sign-in that works in preview but fails live is often the same problem. After adding a custom domain, update both again.
3. Missing environment variables or a build error (blank page)
Bolt's own troubleshooting docs say projects often show a white screen when required environment variables are missing. Ask Bolt to list every environment variable the app needs and add them in the Secrets menu. If you host on Netlify instead, Netlify doesn't see Bolt's variables until you add them under Site configuration, Environment variables, then rebuild. Browser-side variables need the prefix your framework expects (VITE_ for Vite apps), and anything with that prefix is visible to every visitor, so never put a secret key in one. Running npm run build in Bolt's terminal surfaces build errors that the preview can hide. In Lovable, a failed build shows Build errors need fixing in the Publish dialog with a Try to fix button, and an expired Supabase connection can also stop a publish until you reconnect it.
4. Refreshing a page gives a 404 (your own hosting)
Lovable and Bolt apps are usually single-page apps: one index.html that handles every route in the browser. Clicking around works, but refreshing /dashboard asks the server for a file that doesn't exist. On Netlify, the documented fix is a rewrite rule in a _redirects file in the published folder:
/* /index.html 200
Also check the publish directory: Vite builds into dist, and pointing the host at the wrong folder serves an empty page.
5. The site won't open on some networks (Bolt)
If a .bolt.host address shows ERR_SSL_PROTOCOL_ERROR or "can't provide a secure connection", Bolt says your network may be blocking that domain. Try it on mobile data with any VPN off. If it loads there, the site is fine; a custom domain avoids the problem for visitors.
What to paste into Lovable or Bolt
My app works in preview but not on the published site at [your live URL]. What I see: [describe it]. Check for missing environment variables, build errors, auth redirect URLs that still point to localhost or the preview, and routing that breaks on refresh. List what you find and the fix for each before changing anything. Don't disable row level security and don't put any secret key in browser code.
When it's time to get help
Often it's a republish or one setting. Get a second pair of eyes when:
- The live site is blank and the AI keeps guessing.
- Sign-in, emails or Stripe payments only break in production.
- You're moving to your own domain and don't want to break sign-in or lose visitors.
- You're about to launch and want the whole app checked.
| Option | Price | What you get |
|---|---|---|
| App Audit | $49 one-time | A plain-English written fix list for what breaks after publishing, within 3 business days |
| Payments Live | $199 one-time | Stripe payments wired into your app and tested with test cards before going live |
| Launch Pack | $499 one-time | Agreed bug fixes, Stripe payments, and your app published on your own domain with HTTPS |
We confirm the scope by email before any work starts, and you can ask questions first without paying. Never send anyone your password or your Supabase secret key.
Related guides
- First time publishing? See How to publish a Lovable app or How to publish a Bolt app.
- Data won't save on the live site? See the Supabase RLS error guide and Supabase's Oct 30 grants change.
- Custom domain stuck, Not secure or showing an old site? See custom domain not working.
- Live but nobody can find it on Google? See app not showing up on Google.
- Google sign-in broken? See Google sign-in not working in a Lovable or Bolt app.
- Edge Function failing with a non-2xx status code? See the Supabase Edge Function error guide.
- Launching a Lovable app? Run through the Lovable + Supabase launch checklist.
Sources
- Lovable: publish your project (snapshots, Publish changes, unpublished-changes dot, URL subdomain, build errors and Try to fix, expired Supabase connection)
- Bolt: publish your project (changes need Update)
- Bolt: preview issues (npm run build, white screen from missing environment variables, Secrets)
- Bolt: publishing issues (bolt.host blocked by networks)
- Supabase: redirect URLs (Site URL default, change from localhost)
- Netlify: rewrites for single-page apps (/* /index.html 200)
- Netlify: deploy your Bolt app (environment variables, VITE_ prefix, dist folder, 404 on refresh)
FAQ
Why does my Lovable or Bolt app work in preview but not on the live site?
Usually one of four things: your latest changes were never republished, sign-in links still point to the preview or localhost because Supabase's Site URL wasn't updated, environment variables or secrets exist in the builder but not on your host, or (on Netlify or similar hosts) page refreshes 404 because the single-page app rewrite is missing.
Why don't I see my latest changes after publishing?
Both Lovable and Bolt publish a snapshot. Later edits aren't pushed live automatically: in Lovable click Publish, then Publish changes; in Bolt open the Publish menu and click Update.
Why do sign-up confirmation or password reset emails open localhost or the wrong site?
Supabase uses the Site URL in Authentication, URL Configuration as the default redirect. Change it from localhost or the preview address to your live URL, and add your live and custom domain URLs to the Redirect URLs list.
When should I pay someone to fix this?
When the live site is blank and the builder can't find why, when sign-in or payments only break in production, or before launching on your own domain. StackMatch's App Audit is $49 for a written fix list, and the $499 Launch Pack includes publishing on your own domain with HTTPS.
Some links are referral links; we may earn a commission at no extra cost to you. It never changes our recommendations.