You hit Publish, the dialog spins — and your app never goes live. Lovable app not deploying is one symptom with about eight different root causes, and the publish dialog already tells you which one you have. The trick is reading the exact message instead of retrying blindly.
Lovable app not deploying: find your failure mode first
Match what your screen shows to a cause before touching anything:
- Publish button replaced by “Try to fix” — your latest changes do not build. Publishing a broken build would fail the same way.
- Banner “publishing failed due to a configuration issue” — project setup problem, not your code.
- “You don’t have permission to publish this project” — publishing needs editor access or above.
- “Approval needed” or “Publishing blocked” — a workspace policy is holding the publish.
- Failure after a timeout or rate limit — temporary, Lovable-side. Usually clears on retry.
- Failure about a connection or secret — an external service (usually Supabase) dropped its credentials.
- Failure offering “Ask the assistant to help” — a database migration conflicts with production data.
- Publish succeeds but the live site shows old code — a different problem: propagation, cache, or a publish that quietly died.
Why the AI leaves you at this step
The preview builds your app in a forgiving sandbox — type errors slide, env vars resolve loosely, nothing has to pass a production build. Publishing runs the strict build, and that is where lovable app not deploying appears: the first time the app must compile clean for the outside world. It is the same wall described in the lovable not working checklist, just at the very last step.
Fix 1: Try to fix — the build actually failed
- Click Try to fix once. Lovable reads the build log and patches the error in the project chat. You get 10 free fixes, shared with the Security view — each one refills 24 hours after use. After that, fixes cost credits, so do not spam it.
- If it comes back, ask for the specific error: “show me the build error”. TypeScript errors, a missing import in
package.json, and stale Supabase types are the three usual suspects — name them in chat (“regenerate the Supabase types from the database schema”) instead of a generic “fix it”. - Publish again when the preview builds. The button only returns once the project compiles.
Fix 2: Permission and policy blocks
- Get editor access. “You don’t have permission” means your workspace role cannot publish — ask an admin or owner to raise your role, or have them publish.
- “Approval needed” is an Enterprise flow: request approval inside the dialog and the publish unblocks after sign-off.
- “Block publishing with critical issues” is a workspace security switch (Workspace settings → Security → Privacy & security → Publishing). The dialog lists unresolved findings — open the Security view, resolve them or have an admin lift the policy, then publish.
Fix 3: The two causes Lovable never names
- A leftover test database. If your project ever had Lovable’s deprecated test/live beta enabled, a second “test” database can still hang on the project. Env vars resolve to one database, Lovable Cloud points at the other, and the build fails with no clear error. Check the database section in Lovable Cloud — a test database next to the live one gets deleted, then republish.
- An expired Supabase connection. If publish fails with a connection or secret error, the stored Supabase credentials went stale. Reconnect under More → Integrations, then publish again.
Fix 4: Published — but the live site is still old
- Hard-refresh first. A fresh publish does not replace the cached page instantly — force-reload or open the live URL incognito.
- Still old after a few minutes? The publish silently failed. Reopen the publish dialog — the failure banner stays there with the actual error, and you are back in one of the cases above.
- On a custom domain, verify the domain still points at the project — the lovable custom domain guide covers the DNS side.
Deploying outside Lovable instead
If the plan is hosting on Vercel, Netlify or your own server: export or sync the code first — the lovable github flow is the standard path. The classic failure there is env vars: hosts do not read your .env file, and Vite only exposes variables prefixed VITE_ — copy them into the host’s settings exactly as the vercel env vars guide shows, then rebuild. Once the app is live somewhere, the lovable deploy checklist covers the remaining production settings in order.
Run checklist
- Publish dialog read — failure matched to a cause, not retried blind
- Build errors resolved (Try to fix used, free-fix count known)
- Role is editor+ or admin/owner published instead
- Workspace security findings resolved or policy lifted
- No leftover test database in Lovable Cloud
- Supabase connection reconnected, credentials fresh
- Live URL hard-refreshed / incognito-verified after publish
- Credits not exhausted — publish retries do not burn them, fixes do
Almost every lovable app not deploying case is one named cause wearing a generic spinning dialog — read the banner, not the spinner.
FAQ
Why does Lovable say Try to fix instead of Publish?
Your latest changes failed to build, so publishing them would fail the same way. Click Try to fix once or twice — you get 10 free fixes that refill after 24 hours — or describe the build error in the project chat, then publish again when the preview builds clean.
Publish worked but my live site still shows the old version — why?
Two causes. A new publish does not replace the live site instantly, so hard-refresh first. If it is still stale after a few minutes, the last publish silently failed — open the publish dialog again and read the banner, it keeps the failure message.
Can a Supabase connection block a Lovable publish?
Yes. An expired Supabase connection or a database migration conflict fails the publish from the outside. Reconnect Supabase under More – Integrations, and let Try to fix or the assistant resolve a migration conflict before publishing again.