Lovable app not working once published: a decision tree by symptom
Updated November 23, 2026. 7 min read.
In short. The preview and the published app are not the same thing: the published site is a snapshot taken at your last publish, opened by people who are not logged into Lovable, on devices that are not yours. Open the published URL in a private window on another device, sign up with a fresh account, note the first thing that goes wrong, and follow the matching branch below: old version, blank page, sign-in, missing data or payment.
Why does it work in the preview and not once published?
Four facts from Lovable's documentation explain most of the gap.
- The live site keeps showing the version you published. Later changes stay off it until you click Publish, then Publish changes.Source: Lovable documentation, publishing, read November 2026
- The preview and the published app share the same backend and the same data, so a database change affects both.Source: Lovable documentation, preview, read November 2026
- The preview opened in its own tab requires a Lovable login with access to the project. Your visitors have neither.Source: Lovable documentation, preview, read November 2026
- With built-in payments, test mode applies in the preview and live mode in the published app.Source: Lovable documentation, payments, read November 2026
Add what is true of any web app: you test logged in, with an old account full of data, on a laptop where everything is cached. A stranger arrives with none of that.
How do you reproduce the problem like a real visitor?
- Copy the published URL from the publish dialog, not the address of the preview.
- Open it on another device, ideally a phone on mobile data. At the very least, use a private window.
- Sign up with an email address the app has never seen.
- Do the main thing your app is for, once, from start to finish.
- Write down the first difference with the preview, and the exact text of any error. On a computer, open the browser's developer tools, go to the Console tab and copy the lines in red.
That last step matters: Lovable's debugging guide explains that Lovable reads the preview's console logs by itself, but that an error on the published site has to be copied from your browser and pasted into the chat.
The decision tree: start from the symptom
| What the fresh account sees | Check first | Then |
|---|---|---|
| An old version of the app | A dot on the Publish button | Browser cache |
| A blank page, an error page, or nothing loads | Who can access the app, and the domain status | Console error at load |
| Sign-in fails or sends you back to login | Redirect URLs | Links in confirmation emails |
| Logged in, but lists are empty or saving fails | Database rules for a new user | Empty states |
| Payment fails only on the published app | Test mode versus live mode | Price IDs |
| It works, then keeps crashing | Credits and backend | The action that triggers it |
You see an old version
Lovable shows a small dot on the Publish button when the project has changes that are not live yet: publish again. One documented special case concerns drafts (changes tried in a separate copy): accepting one applies its database and backend changes to the live app immediately, while its pages only reach visitors at the next publish. So publish right after accepting. If the dot is gone and one device still shows the old version, suspect that browser's cached copy: reload in a private window.
A blank page, or nothing loads
First rule out access. The publish dialog has a visibility setting, and anything other than Public keeps strangers out. Lovable's FAQ also notes that after a downgrade, the next publish switches the app to Invite only. On a custom domain, the domain page says it serves nothing until the project is published, and that its status must read Active under Project → Settings → Domains.
If access is fine, a blank page often means the app crashed while loading. In web apps generally, the usual suspects are an environment variable (a setting such as an API address that the app reads at startup) missing from the published build, or a page that assumes a logged-in user. The console error tells you which.
On the published URL, a new visitor gets a blank page. It works in the preview.
Console error, copied as is: [paste]
Find what differs between preview and published for this page (settings, environment values, a user that is assumed to be logged in) before changing any code.
Sign-in fails or loops
Lovable's authentication page says sign-in often works in the preview and breaks on the published app or a custom domain when those addresses are missing from the redirect URLs (the list of addresses your login system is allowed to send users back to). On the built-in backend, Lovable adds them automatically; check under More → Users → Settings → Advanced → Redirect URLs. On your own Supabase project, you add them yourself in its URL configuration. With your own Google credentials, the new address also goes into Google Cloud Console.
Sign-in works in the preview but fails on [published URL].
Check that this address is in the auth redirect URLs and that confirmation and password reset emails link to it, not to the preview address.
Logged in, but data is missing or saving fails
Since preview and published share one database in Lovable, the fresh account's problem is rarely "the wrong database". It is being new. Two general causes: screens never designed for an empty account, and database rules. Row level security (RLS, rules inside the database that decide which rows each user may read or write) can filter everything out silently: Supabase's documentation states that a blocked read raises nothing and simply matches zero rows. Create one item with the fresh account, reload, and see whether it is still there.
With a brand-new account on the published app, I create a [thing]. After a reload, [it is gone / I get this error: ...].
Check the database rules for a newly signed-up user on this table: can they insert a row, and read back their own rows? Do not loosen the rules for other users' data.
Payment fails only on the published app
With built-in payments, the published app is in live mode, where real cards are charged: test card numbers belong to the preview. Lovable's payments page adds that live checkout will not work until the go-live verification is complete. With your own Stripe key, check the key and the price IDs, which differ between test and live. The full sequence is in six payment tests for a Lovable app.
It works, then keeps crashing
Lovable's hosting page says running out of credits does not take the published site down, but that apps relying on the backend or on AI features can pause. Rule that out, then find the action that triggers the failure: repeat it with the console open and copy the error.
Once it is fixed, replay the same fresh-account visit after each publish. To stop the next prompt from breaking it again, keep a 15-line regression list.
Frequently asked questions
Why does my Lovable app work in preview but not when published?
The published site is a snapshot of your last publish, opened without your Lovable session, your old account or your browser cache. The gaps to check first are unpublished changes, an access or domain setting, missing redirect URLs for sign-in, and database rules that a brand-new account hits for the first time.
Does the Lovable preview use a separate database?
No. According to Lovable's documentation, the preview and the published app share the same backend and data. Anything you create or delete while testing in the preview is real data in the live app, so use dedicated test accounts and clean up after yourself.
My published Lovable app shows a blank page. Where do I start?
Check that the app's visibility is Public and, on a custom domain, that the domain is Active and the project published. Then open the browser console on the published URL, copy the error in red, and paste it into the Lovable chat with the note that it works in the preview.
Keep reading
- Claude not using your MCP tool? Diagnose it with an agent that has no context
- AI keeps breaking working code: the 15-line regression list for non-developers
- Stripe webhook in Lovable: six payment tests to run with a fresh account
Want a pair of eyes that has never seen your product?
Cobaye tests your SaaS or your MCP server from the outside, with fresh accounts, and hands you the findings ranked by severity, each with the prompt that fixes it. The first 20 on the waitlist get 50% off their first test.
Join the waitlist