ERR-744/Lovable · Preview works, published site fails

Appears when: Preview works, published site fails

Lovable app works in preview but not after publishing

The generated interface is loading in Lovable’s preview context, but the published domain is exposing a different configuration, origin, authentication callback, or backend behavior. Diagnose the first live-only failed request before prompting Lovable to rebuild components.

Reviewed October 2026 · 6 min read · By Zenveus Engineering

How do I fix lovable app works in preview but not after publishing?

production-fix-plan.txtrun in order
01# Save the current working preview
Record the exact preview flow and preserve the current version before new generated changes.
02# Repair the first live-only failure
Correct the specific origin, integration value, route, or runtime exception shown by evidence.
03# Republish once
Avoid stacking unrelated prompts. Publish the one verified change and repeat the same test.
04# Verify the custom domain separately
Test both the platform URL and custom domain to isolate DNS and origin behavior.

Preserve the current working revision, change one proven boundary, and verify the published path in a clean session.

What if the quick fix does not work?

01Test the actual published domain

Open DevTools in a clean session and capture the first console or network error.

What the result tells you: A domain-specific CORS, callback, cookie, or asset error identifies the boundary faster than a visual symptom.

02Compare environment values and integrations

Confirm the live build points to the intended Supabase project and uses the expected public configuration.

What the result tells you: A wrong project URL or missing public key produces broad auth and data failures.

03Verify published routes and assets

Reload a nested route and check whether the main JavaScript bundle and route fallback return correctly.

What the result tells you: A 404 on refresh or a failed bundle creates an apparently blank application.

Likely causeWhat proves itFirst safe action
Live origin is not allowedA domain-specific CORS, callback, cookie, or asset error identifies the boundary faster than a visual symptom.Save the current working preview
Production integration mismatchA wrong project URL or missing public key produces broad auth and data failures.Repair the first live-only failure
Client runtime errorA 404 on refresh or a failed bundle creates an apparently blank application.Republish once
Route or asset publishing issueA domain-specific CORS, callback, cookie, or asset error identifies the boundary faster than a visual symptom.Verify the custom domain separately

Why do AI-built apps hit this problem?

The generated interface is loading in Lovable’s preview context, but the published domain is exposing a different configuration, origin, authentication callback, or backend behavior. Diagnose the first live-only failed request before prompting Lovable to rebuild components.

Live origin is not allowed

OAuth, Edge Functions, CORS, or cookies recognize preview but not the published domain.

Production integration mismatch

The live app points to a different Supabase project, schema, or environment value.

Client runtime error

A generated component assumes preview data or state and throws before the live page renders.

When the built-in AI fix makes it worse

Freeze generated changes, restore the last known working version, reproduce one request, collect the browser and platform logs, and change one layer at a time.

How do I stop this problem recurring?

  • →Add published-domain acceptance tests for login, reads, writes, and deep links.
  • →Keep preview and production integration settings documented side by side.
  • →Keep production configuration in an explicit release checklist, not in chat history.
  • →Test the published URL in a clean browser session before calling the release complete.
  • →Keep a last-known-good deployment and a documented rollback step.
  • →Log the critical request path with enough context to identify the failing layer.

Still stuck with lovable app works in preview but not after publishing?

AI prototype hardening

We restore the critical path and document the root cause.

  • Production failure reproduced with evidence
  • The smallest responsible layer repaired
  • Rollback and prevention guidance included
Discuss the production issue →

Lovable app works in preview but not after publishing questions

Why does a Lovable preview pass when the published app fails?

Preview and live domains can differ in origin, callbacks, cached assets, integration configuration, and persisted data.

Should I ask Lovable to fix the whole app?

Use the exact failing request or console error. Broad repair prompts can change working layers and make diagnosis harder.

Does republishing clear the problem?

Only if the problem was a stale build. Republish after correcting a proven cause, then test the production URL cleanly.

About the guide

Zenveus Engineering works on production systems across product, data, authentication, infrastructure, and AI integrations. This guide is based on current official platform documentation and evidence-led repair practice.

Scroll to Top