You press Publish, open the live link, and get a white screen. No error, no content. The preview still works, which makes it worse.
Why it happens
A blank page almost always means the app crashed while starting, before it could draw anything. The preview and the published site are two different environments, so something the preview had, the live site doesn't. The three usual suspects:
- A missing setting (environment variable). The preview knows your database address or API key; the published build doesn't. The app reads an empty value on startup and crashes.
- An error that only happens with real data or a real address, like code that expects a logged-in user, or a link to the preview domain.
- An old cached version. Your browser shows the previous build, which no longer matches the files on the server.
This is a short excerpt. Every cause, the fix steps and the official sources are in the full guide linked below.
What did your browser console say the last time a published app showed a white screen?
Originally published at vibe-fixer.com. I'm building VibeFix, an AI agent that finds what is breaking your live app, fixes it in your code and re-checks it.
Need your AI-built app fixed on the live site? How we fix it: https://vibe-fixer.com/guides/vibe-coding-expert?src=devto-blank-page-after-publish
Top comments (0)