Skip to content
VibecodeZero

Lovable preview works but the published site doesn't. Why?

Updated First published

On this page (4)
  1. Symptom
  2. Cause
  3. Prompt to paste
  4. How not to burn credits

Symptom

The app works in the Lovable preview, but the published link, ending in lovable.app, shows a blank screen, an error, an empty list or a login that doesn't work.

Cause

When something works in the preview and fails on the published link, the difference is almost always in what each one has, not in your idea. These are the usual suspects, from the simplest to check. They come from Lovable’s docs on publishing and the preview, checked November 24, 2026.

  1. The publish failed or never finished. Click Publish and look at the dialog. When a publish works, Lovable shows “Your website is live”. When it doesn’t, you see “Publishing failed” with the reason and a button: Try again for a temporary problem, Try to fix for an error in your app, or a note to reconnect something outside your project, like an expired Supabase connection. If the dialog says “Fix build errors”, your latest change didn’t build. See Lovable build errors.
  2. The published version is older. Lovable’s live site is a snapshot. Your changes show up in the preview right away, but the live site only updates when you click Publish and then Publish changes. If that’s the case, see The published link doesn’t show my latest changes.
  3. You’re opening a different address. Your lovable.app address comes from the project’s URL subdomain, which can be different from the project’s name. If you changed the subdomain, the site moved to the new address. If you use your own domain, DNS changes can take a while. And if the link went offline because the project was deleted, see Deleted a Lovable project by mistake?: you can restore it within 60 days.
  4. Your browser is showing a saved copy. Reload the page or open it in a private (incognito) window.
  5. The preview has something a visitor doesn’t. In the preview, you’re logged in to Lovable and maybe to your own app. A visitor opening the link for the first time isn’t. Lovable’s docs say the preview and the published app share the same data, so if the list is empty for visitors, the app is probably only showing data to a logged-in person, or assuming someone is always logged in. If the problem is signing in itself, see Lovable login works in preview but not on the published site. If it’s payments, which run in test mode in the preview, see Lovable Stripe payments work in the preview but fail on the published app.
  6. Access rules are blocking visitors. If the app’s database only lets certain people read the data, the public page may show up empty. Also check the publish settings: if the site is set to Invite only, people who weren’t invited can’t open it. The opposite problem, data open to everyone, is covered in Could my app be exposing personal data?.
  7. Your workspace ran out of credits. Lovable’s docs say a published app that uses the built-in backend (Lovable Cloud) or AI features needs available credits to keep working. Without them, AI features fail and the backend pauses. See I ran out of credits. If only the app’s AI feature stopped working, also check Lovable AI model deprecated.

You don’t need to know which one it is. The prompt below asks the AI to list the differences and wait for you before changing anything.

Prompt to paste

Copy the text below, replace what’s in brackets and send it in the chat of the tool you’re using.

Paste into the AI
My app works in the Lovable preview, but the published version doesn't.
What happens on the published link: [for example "blank screen", "the list is empty" or "login doesn't work"]
Error message, if any: [paste the whole message]
I published again after my last change: [yes / no / not sure]

Don't change anything yet. First list what is different between the preview and the published version that could explain this, from most likely to least likely, and tell me how I can check each one without coding. Wait for my confirmation before making any change.

How not to burn credits

  • Do the free checks first. Open the Publish dialog, click Publish changes if it's there, then open the link in a private (incognito) window. Publishing from the Publish dialog doesn't use credits. Asking Lovable in the chat to publish does.
  • Ask for a diagnosis before a fix, as the prompt does. Send it in Chat mode or Plan mode, which don't change your code. Chat mode usually costs a fraction of a credit, and Plan mode costs 1 credit per message, plus extra if Lovable runs deeper research.
  • If the Publish dialog offers Try to fix, use it once or twice. Lovable's docs say each account gets 10 free fixes, and each one becomes free again 24 hours after you use it. After that, fixes use credits.
  • After each attempt, check what the message cost in the More options menu under Lovable's reply, in the Credits used line.
  • If two or three fixes don't work, stop. Go back to the version with the Published badge in History, which is the one that's live, and ask for the change again in smaller parts.

How Lovable counts credits, and what the free plan includes: Lovable credits explained.

Questions people ask

Why does the published link show an older version of my app?

In Lovable, the published site is a snapshot from the moment you published. Changes you make afterward only go live when you click Publish and then Publish changes. A small dot on the Publish button means you have changes that aren't live yet.

Why does the Publish button show Try to fix instead of Publish?

Lovable shows "Fix build errors" when your latest changes failed to build, so publishing them would fail too. Click Try to fix to have Lovable fix the build error, then publish again once the preview builds.

Does publishing cost credits in Lovable?

No. Publishing from the Publish dialog is free and works even with zero credits. Asking Lovable in the chat to publish counts as normal building and uses credits. Apps that use Lovable Cloud or AI features also need credits to keep serving visitors.

Does the published app use a different database from the preview?

No. Lovable's docs say the preview and the published app share the same backend and data, so a change to your database affects both. If the published page looks empty, check whether you're logged in in the preview and whether your data rules only show the data to the person who created it.

If the preview works, is the app ready to share?

Not always. The preview is where you test as yourself, logged in to Lovable. Before sharing, open the published link in a private window, without logging in, and on your phone, the way a visitor would.

How do I see what visitors see?

Open the published link in a private (incognito) window, without logging in. It's even better on another device, such as your phone.

New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe