Blank page after deploy? Check your production env vars

Your app works in the editor preview, but the live site shows a white screen. A common cause: environment variables that exist in the preview but not in the production build.

Open the live site, press F12 and check the Console. Errors like supabaseUrl is required, or API calls going to undefined, point straight at a missing variable.

The fix: add every required variable (API URLs, publishable keys) in your host's production settings, then redeploy. In Vite apps, VITE_ variables are baked in at build time, so changing them does nothing until the next build. Never put secret keys in VITE_ variables; those ship to every visitor's browser.

Run the free 30-second check to see whether your live app renders and which errors it throws.

Run the free 30-second check

← All posts