Agency-to-Agency · We build, you deliver. 100% White Label — Your brand, your client, your credit. Start a Project →
AI Rescue Guide

Bolt.new App Not Working? How to Fix Preview, Deploy and Login Problems

By the AR Webcrafts engineering team · Updated
Quick answerWhen a Bolt.new app breaks, the cause is usually one of five things: the preview cannot start because of a dependency or browser problem, the deployed site is missing environment variables or a routing rule, Supabase login or row-level security is set up for the preview instead of the live domain, payments or secret keys are handled in the browser instead of a server function, or the project has grown so large that each prompt rewrites working code. Check the terminal and the browser console first. The first error you see tells you which section below to read.

Bolt.new builds and runs a full app in your browser, which makes it very fast for a first version. The trouble usually starts when the project grows, when it moves from the in-browser preview to a real host, or when real users and payments arrive. This guide covers the Bolt problems we see most often when founders and agencies bring us a stuck app, in the order we check them.

First 10 minutes: find the real error

  1. Read the terminal panel in Bolt. Install and build errors appear there first. The first red line matters more than the last one.
  2. Open the browser console on the preview or the live site and reproduce the problem. Copy the first error.
  3. Check the Network tab. A 401 or 403 is usually auth or row-level security, a 404 on refresh is routing, and a blocked request mentioning CORS is an allowed-domain setting.
  4. Note the last change that worked. If the app broke after one prompt, going back to the earlier version is often faster than prompting forward.
What you seeMost likely causeWhere to fix it
Preview stays blank or keeps loadingInstall error, unsupported package or a browser settingBolt terminal, then browser and extensions
Works in Bolt, blank page after deployMissing environment variables or wrong build settingsHosting dashboard
Refreshing a page on the live site gives a 404Missing single-page-app rewriteHost rewrite or redirect rules
Login works in preview, fails liveAuth redirect URLs still point at the previewSupabase Auth URL settings
Users see no data, or other users' dataRow-level security policiesSupabase table policies
Payment succeeds but nothing unlocksNo server-side webhook handlingStripe dashboard and an edge function
Every prompt breaks something elseThe project outgrew promptingGit, smaller changes and a developer

Bolt preview not loading or showing a blank screen

Bolt runs your app inside the browser, so the preview depends on your browser as well as your code.

Install or build errors

If the terminal shows an install error, a package may need native code or a system tool that cannot run in the browser environment. Fix: replace that package with a pure JavaScript alternative, or remove it and ask Bolt to rebuild the feature in a simpler way. Then restart the dev server from the terminal.

Browser settings and extensions

Ad blockers, privacy extensions and strict cookie settings can stop the preview from loading. Fix: try a private window with extensions turned off, or a current version of Chrome or Edge. If the preview works there, the code is fine.

A runtime error on the first page

A blank preview with no terminal error usually means the app crashes when it starts. The browser console shows the component and line. Fix that one error before asking for anything else.

Bolt app not working after deploy

Missing environment variables

Keys in your project's environment file are not always carried over to your host. Fix: add every variable the app reads (in a Vite app they start with VITE_) in your hosting dashboard, for example Netlify site settings, and deploy again. Secret keys belong in server functions, not in variables the browser can read.

Page refresh returns 404

Single-page apps need every route to load index.html. Fix: on Netlify add a _redirects file containing /* /index.html 200; on Vercel add a rewrite in vercel.json.

Build settings

If you deploy from GitHub to another host, use the build command npm run build and the output folder dist for a Vite project, and make sure the Node version on the host is current.

Custom domain not working

Add exactly the DNS records your host shows, remove old records for the same name, and give DNS time to update before changing anything else.

Bolt and Supabase login problems

Login or email links go back to the preview

Fix: in Supabase Auth URL settings, set the Site URL to your live domain and add every domain you use, including www and any staging domain, to the redirect URLs. Do the same in Google or GitHub login settings.

Users sign up but cannot log in

Email confirmation is probably on, but confirmation emails are not being delivered. Check the auth logs, then set up a real email provider with SPF, DKIM and DMARC on your domain.

Logged in, but data requests fail

That points to row-level security, covered next.

Data missing, or visible to the wrong users

If new users see nothing, the policies are too strict. If every user can see everyone's data, the policies are missing, which is a serious leak. Fix: enable row-level security on every table and write policies that limit each row to its owner, usually by comparing a user column with auth.uid(). Test with an ordinary second account, not only your admin account.

Payments, secret keys and server logic

A Bolt app's frontend runs in the browser, so anything secret or anything that must be trusted needs to run on a server.

Our 12-point security checklist for AI-built apps goes through this in more detail.

Bolt keeps breaking the app when you ask for a fix

As a project grows, the AI can no longer keep every file in view, so fixes start rewriting code that worked and tokens disappear fast.

  1. Go back to the last working version instead of prompting forward from a broken state.
  2. Ask for the cause first and which files are involved, before letting it change anything.
  3. Make one small, specific change per prompt, naming the file and the behaviour you expect.
  4. Connect GitHub or download the project regularly so you always have a copy you can return to.
  5. Know when to stop. If the same bug survives several focused attempts, the cause is structural and a developer will be faster and cheaper than more tokens.

What a developer does to rescue a Bolt app

  1. Triage: a short call and read-only access to the code (GitHub or a download) and to Supabase, to find the real cause.
  2. Fixed quote: what is broken, what we will fix and what it costs, before work starts.
  3. Fix the root cause: build and deploy settings, auth, row-level security, payments and security, checked on a staging link.
  4. Hand back: you keep the code and can keep building in Bolt afterwards.

Most Bolt apps can be fixed in place. If a rebuild really is the better choice, we explain why. See rescue or rebuild for how we decide.

Fix it yourself or hire a developer?

Fix it yourself if the error is clear and the fix is one setting. Get help if real users or payments are affected, if you suspect a data leak, or if you have spent days and a lot of tokens going in circles. Our AI App Rescue service starts with a free 15-minute triage. Many Bolt apps use the same Supabase setup as Lovable apps, so our Lovable troubleshooting guide is useful too.

Frequently asked questions

Why is my Bolt.new preview not loading?

Usually an install or build error shown in the Bolt terminal, a package that cannot run in the browser, or a browser extension or cookie setting that blocks the preview. Read the first error in the terminal, then try a private window with extensions off.

Why does my Bolt app show a blank page after deploying?

The live site is usually missing environment variables, has the wrong build settings, or crashes on a missing key. Add every VITE_ variable on your host, use npm run build with the dist folder for a Vite app, and check the browser console on the live site.

Why do pages give a 404 when I refresh my deployed Bolt app?

Single-page apps need every route to load index.html. On Netlify add a _redirects file with /* /index.html 200, and on Vercel add a rewrite rule.

How do I fix Supabase login in a Bolt app?

Set the Site URL in Supabase Auth to your live domain and add every domain you use to the redirect URLs, including in Google or GitHub login settings. If login works but data requests fail, check row-level security policies.

How do I stop Bolt rewriting working code?

Go back to the last working version, ask for the cause before letting it edit, make one small change per prompt and keep a copy in GitHub. If the same bug survives several focused attempts, the project has outgrown prompting and a developer will be faster.

Can a developer fix a Bolt app without rebuilding it?

Usually yes. Most problems are in deploy settings, auth, database rules, payments and security, which a developer can fix in the existing code. You keep the code and can keep using Bolt afterwards.

Need hands-on help?

AR Webcrafts is a fully remote software team registered in Wyoming, USA. We build SaaS, web apps and WordPress, rescue stuck AI-built apps and work white label for agencies worldwide.

Talk to an engineerBook a free 30-min call

Related guides

Written by the AR Webcrafts team: 8+ years building software, 80+ projects delivered.