Paul Milliken

Error guide

Blank page on the live site, but it works in preview

What it means

The live site is running a build that is missing something the preview had, very often a setting such as the database address. In Vite apps, settings that start with VITE_ are baked into the build when it is made, so a value added later isn't there until you build again.

Check these, in order

  1. The first red error. Open the live site, open the browser's developer tools (right-click, Inspect, then Console) and read the first red line. A missing address or key usually names itself there.
  2. The settings on your host. On Vercel: your project, then Environment Variables in the sidebar. On Netlify: Project configuration → Environment variables. Compare the names (not the values) with the ones your code uses, such as VITE_SUPABASE_URL.
  3. Build again. After adding or changing a value, redeploy. A running deployment keeps the values it was built with. On Lovable, VITE_ values belong in the project's .env file, not in Secrets; publish again after changing one.

Still stuck? Send me the app

I'll show you what's wrong, on video, within 24 hours. Free.

Free. No call. If I can't find the cause, I'll tell you so.

Please don't put passwords or keys in the form.