# My Bolt app is blank on the live site but works in the preview

Source: https://vibe-fixer.com/guides/bolt-blank-page-live-works-in-preview
Last updated: 2026-11-26

**Tell us what broke. Our AI agent tries it on your live app and sends you a screenshot, free.** The free check never changes your app. [Check my app free](https://vibe-fixer.com/?src=guide-bolt-blank-page-live-works-i-t#triageForm)

If you want it fixed, the AI agent finds the cause, fixes it in your code as a GitHub pull request you review, and re-checks your live app. If we can't complete your re-check, you get your money back.

**Verdict**

| Question | Answer |
| --- | --- |
| Can I fix it myself? | Yes, if the cause is a setting or a missing redirect. The steps below show where each one sits in Bolt. |
| How serious is it? | Serious for visitors, because a blank page gives a new visitor nothing to use. Bolt says the "Could not find a build output directory" error doesn't mean your project or code is lost. |
| What does a fix cost? | Free if you follow the steps below. If you want it fixed for you, our AI agent fixes it in your code (see [pricing](https://vibe-fixer.com/pricing)) and re-checks your live app. |

**Short answer:** A Bolt project has two lives: the project you edit and preview inside Bolt, and the published site visitors open. When the preview works and the live site is blank, open the live address in a private window, open the browser console, reload, and read the first red error. Then check four things in Bolt: did you click **Update** after your last change, are all your secrets and settings in place, did the build output end up where Bolt looks, and does a page behind the home page need a redirect rule. This page is for the Bolt-specific part. The general causes of a blank page are in [blank page after publish](https://vibe-fixer.com/guides/blank-page-after-publish), and the wider preview versus live gap is in [works in preview, not after deploy](https://vibe-fixer.com/guides/works-in-preview-not-after-deploy).

## What do you see?

| What you see | Where to look first |
| --- | --- |
| The live address is white, the preview looks fine | [Step 1](#step-1-publish-the-latest-changes-with-update) and [step 3](#step-3-read-the-first-error-in-the-browser-console) |
| The home page opens, an inner page says "Page not found" | [Step 5](#step-5-fix-page-not-found-on-inner-pages) |
| Bolt shows "Could not find a build output directory" | [Step 6](#step-6-fix-publish-errors) |
| The preview itself is blank or gray | [The preview is blank too](#the-preview-is-blank-too) |

## Why is my Bolt app blank when I publish it?

Because the preview and the published site are two different places. Bolt's docs say: "After you publish, changes you make to your Bolt project aren't automatically applied to your published site." A key or a setting can exist on one side and be missing on the other, and then the app stops while it starts up and leaves a white screen. If the cause is in your own code, the browser console tells you which line.

## How do I fix a blank page on my published Bolt site?

Go in this order. Each step is short.

### Step 1. Publish the latest changes with Update

Open the **Publish** menu and click **Update**. Bolt's docs say: "To publish changes, in the `Publish` menu, click **Update**." They also say: "Always use the **Publish** or **Update** button in the `Publish` menu to publish your site, since these options don't use tokens." Wait for it to finish, then reload the live address in a private window.

### Step 2. Check Bolt's status page

Bolt's publish troubleshooting page says: "Before troubleshooting, check the Bolt status page for any active incidents." The page is [status.bolt.new](https://status.bolt.new/). If there is an incident, check your project again after it ends.

### Step 3. Read the first error in the browser console

1. Open the live address in a private window.
2. Open your browser's developer tools and choose the **Console** tab. Bolt's preview page gives `CMD + Option + J` on macOS and `Ctrl + Shift + I` on Windows.
3. Reload the page, so the error appears again.
4. Copy the first red error.
5. Open the **Network** tab, reload, and look for a request that is red, or one that goes to localhost or shows "undefined" in its address.

Bolt's preview page says to copy errors from the browser console and paste them into Bolt, and that giving Bolt the exact error from the terminal "helps it diagnose the problem far more reliably" than a general prompt.

### Step 4. Check your secrets and settings

A missing value can leave a white screen. Bolt's preview page says: "Projects often show a white screen when required variables are missing." It also says to ask Bolt to review your project and list every environment variable it expects.

To see your keys, click the database icon in the top menu, then **Secrets**. Two facts from Bolt's Secrets page matter here:

- "Secrets only work with server functions."
- "if your code reads a value from the browser, that value ends up in what's sent to anyone visiting your published site."

So a key that your browser code needs, and that you stored only as a secret, will be missing in the browser. A key that must stay private belongs in a server function, not in browser code. If your project uses Vite, only variable names that start with `VITE_` reach the browser, and Vite says: "VITE_* variables should not contain sensitive information such as API keys." After you change a setting, click **Update** again.

### Step 5. Fix "Page not found" on inner pages

If the home page works and another page, such as `/login`, fails when you open or refresh it, Bolt's publish troubleshooting page explains that single-page apps load every page from one `index.html`. The fix it gives is a redirect rule that sends those requests to `index.html`. You can ask Bolt to add a `_redirects` file with the rule, or add it to `netlify.toml` if the project has one. Then publish again, choose **Update**, and test a non-home page by refreshing it.

### Step 6. Fix publish errors

Bolt's publish troubleshooting page lists these:

- **"Could not find a build output directory":** Bolt looks for the output folder, such as `dist` or `build`. The page says this doesn't mean your project or code is lost. Ask Bolt to check how the project builds and fix it, then publish again.
- **"Contains no HTML file":** server-rendered apps need to build as static HTML before Bolt can publish them. Ask Bolt to change the build to static output using SPA mode or prerendering.
- **A project over 100MB:** remove unused images and videos, or move media to external storage.
- **"This site can't be reached" or an SSL error:** the site did publish, but your device or network may not reach it. Republishing won't help. Test on mobile data or another network.

## The preview is blank too

Bolt's preview page lists these for a blank, white or gray preview: hard refresh (`Ctrl + Shift + R` on Windows, `Cmd + Shift + R` on Mac), try the project in a new tab, run `npm run build` in the Code view terminal to surface compilation errors, and ask Bolt to review your project and list every environment variable it expects.

## How do I check it's fixed?

1. Open the live address in a private window, and open two or three pages behind the home page. Reload each one.
2. The console shows no red errors while the pages load.
3. The Network tab shows no red requests and no request to localhost.
4. Repeat on a phone with mobile data.
5. If you have sign-up or payments, do that journey as a new visitor with a new email address.

## Why can't I see the blank page myself?

You test in the preview, you are signed in, and your browser may hold a copy of the old page. A new visitor opens the live address cold, gets the white screen, and leaves without telling you.

## When the live app still fails

Login, emails or payments broke in your live app? Our AI agent fixes it in your code, then tests your live app again.

Start with the free check: tell us what broke, and our AI agent tries it on your live app and sends you a screenshot. For the Bolt side of publishing, secrets, logs and restore points, see [fix broken Bolt app](https://vibe-fixer.com/guides/fix-broken-bolt-app).

For more on what breaks in AI-built apps after launch, sorted by category, see [Vibe coding: what breaks after launch](https://vibe-fixer.com/guides/vibe-coding-what-breaks-after-launch).

## FAQ

### Is the free check really free?

Yes. Tell us what broke. Our AI agent tries it on your live app and sends you a screenshot, free. Each app gets one free check, with no card needed. The check is usually under 10 minutes. The free check never changes your app.

### Do you need my password?

No. To test your live app, the AI agent signs up as a new visitor, with a VibeFix test address and a password the agent makes up for it. You can delete that test account afterwards.

### What access do you need to fix my Bolt app?

It works on any app whose code is on GitHub, whichever tool built it (Lovable, Bolt, Base44, Replit, v0, Cursor). Lovable projects connect through Lovable's own GitHub sync. For the fix, the AI agent works in your code on GitHub and sends the change to your own repository as a pull request.

### Does it use my Bolt credits?

Doesn't use your builder's credits. Our AI agent changes your code itself. It doesn't use your builder's AI chat. If a fix ever needs your builder's own AI, we tell you before you pay.

### Why does my Bolt app work in the preview but show a white page when published?

The preview and the published site are different places. Changes you make after publishing are not applied to the published site until you click **Update**, and a setting that exists in one place can be missing in the other.

### Where do I see the error behind a blank page?

In the browser console on the live page: open the developer tools, choose the Console tab, and reload. The first red error is the place to start.

### What if my Bolt app can't be fixed?

If we can't complete your re-check, you get your money back. The terms say the refund is automatic and is the full amount you paid, and that it also applies if the AI agent can't make a change to your code.

Related: [Blank page after publish](https://vibe-fixer.com/guides/blank-page-after-publish) · [It works in the preview but breaks after I deploy](https://vibe-fixer.com/guides/works-in-preview-not-after-deploy) · [Fix broken Bolt app](https://vibe-fixer.com/guides/fix-broken-bolt-app)

Last checked: 26 November 2026

## Sources

- https://support.bolt.new/troubleshooting/publish-issues.md
- https://support.bolt.new/troubleshooting/preview-issues.md
- https://support.bolt.new/bolt-cloud/hosting/publish.md
- https://support.bolt.new/bolt-cloud/database/secrets.md
- https://support.bolt.new/llms.txt
- https://vite.dev/guide/env-and-mode

VibeFix is independent. Bolt, Netlify, Supabase, GitHub and Vite are trademarks of their owners.

Want it fixed for you? For any app whose code is on GitHub, whichever tool built it, VibeFix's AI agent can find the cause of this error, fix it in your code and re-check your live app. Start with a free check: https://vibe-fixer.com
