01 — Rescue · 10 min read
Your Lovable or Bolt app works in preview but breaks in production: the causes and the fixes
Most AI-built apps that work in preview and fail in production break for the same handful of reasons: environment variables baked in at build time, auth redirect URLs still pointing at the preview, missing database authorization, webhooks that are not idempotent, CORS, and no error monitoring. Each one has a specific, testable fix.