Pricing

Symptom: blank page after deploy

App works in preview but shows a blank page after deploy

Everything works in Lovable, Bolt, or your local dev server. You deploy to Netlify or Vercel, open the live link, and get a white screen, a 404 on refresh, or a login that does nothing.

Why this happens

The preview and the live site don’t run the same way. Three differences cause most blank pages:

  • Missing environment variables. Your Supabase URL, API keys, and other settings exist in the builder or your local .env file, but not on the host. The app loads, can’t connect, and crashes to a blank screen. In Vite apps, values the browser needs must start with VITE_.
  • No rewrite rule for page routes. Single-page apps handle routes like /dashboard in the browser. The host looks for a real file at that path, doesn’t find one, and returns 404 when you refresh or open a direct link.
  • Auth redirect URLs still point at the preview. Login providers only send users back to URLs you’ve allowed. If only the preview URL is on the list, sign-in on the live domain fails or loops.

Step 1: find which one it is

  1. Open the live site, press F12, and check the Console tab. “undefined” URLs or “Invalid API key” point to environment variables.
  2. Load the home page, then refresh on another page. A 404 only on refresh means a missing rewrite rule.
  3. If pages load but sign-in fails or bounces you back, check your auth provider’s allowed redirect URLs for the live domain.

Step 2: get a deploy checklist from the AI

Paste this into your AI tool and fill in the brackets:

My app works in preview but not after deploying to [Netlify / Vercel / other].
On the live site I see: [blank page / 404 on refresh / login fails].
Console errors: [paste them, or "none"].

Do not change any app features. Check only deploy setup:
1. List every environment variable the app reads, and which ones the browser needs (with the right prefix for this framework).
2. Tell me whether this app needs a rewrite/redirect rule so every route serves index.html, and give me the exact file and contents for my host.
3. List any auth or API settings that need the live domain added.
Give me a short checklist I can follow in the host's dashboard, in order.

Why it works: it keeps the AI out of your app code and focused on the setup that differs between preview and production, which is where this bug almost always lives.

Stuck in a loop after deploy?

The free 2-Strike Rule card tells you when to stop prompting and what to paste in a fresh chat so the AI stops guessing. One page, keep it next to your editor.

Free via Gumroad: enter $0 and your email at checkout.

Related symptoms

If the live app loads but your tables come back empty, read Supabase RLS returning empty data in Lovable. If the AI keeps saying it’s fixed when it isn’t, see Cursor says “Fixed” but the bug is still there.