2026-09-16·Chiheb Nabil

Bolt.new Application Error? Why Your App Breaks After Deploy (and How to See the Real Error)

Your Bolt.new app worked in the preview, then broke in production — 'Application error', 500s, or a blank page. Why it happens, the 6 most common causes, and how to see the actual error without being a developer.

boltbolt.newdebuggingvibe-codingerror-logs

You built an app with Bolt.new. The preview looked perfect. You hit deploy, opened the live URL — and got "Application error", a 500, or a blank page. You go back to Bolt, ask the AI to fix it, and it says everything looks fine. It did work a minute ago.

This is the same trap every AI app builder has: the preview environment and the production environment are different worlds, and the production errors are invisible inside Bolt. This guide explains why it happens, the six causes that cover almost every case, and how to see the actual error message — even if you've never debugged anything.

Why your Bolt app works in preview but breaks in production

Bolt.new's preview runs your code inside the browser sandbox with generous resources, no cold starts, and full error output. When you deploy, the same code runs on real infrastructure (StackBlitz deploys to Cloudflare infrastructure), where the rules change:

  • CPU limits — every serverless platform caps how much compute a request can use. Heavy AI-generated loops get killed mid-request. No error message reaches your logs.
  • Memory limits — loading a big dataset or a file into memory can exceed the cap. Instant kill, blank error.
  • Missing environment variables — the AI wrote code that reads process.env.STRIPE_SECRET_KEY. You never set it in the deploy settings. It worked in preview because Bolt injected its own keys for the sandbox.
  • Different Node/runtime behavior — packages that rely on Node APIs sometimes fail on edge/serverless runtimes.

The error is being thrown in production — it's just that nobody shows it to you. Bolt's chat can't see your production logs. That's the gap.

The 6 most common Bolt.new production errors (and their fixes)

1. "Application error: a client-side exception has occurred"

This is a Next.js/React crash in the browser. Usual causes in Bolt apps: a component reads a property of undefined (API returned a different shape than the AI assumed), or a bad import.

Fix: open the browser DevTools console (F12) on the live URL — the actual error and component stack are there. Then ask Bolt to fix that specific error: "The app crashes because user.profile.name is read when profile is undefined in ProfileCard.tsx. Add optional chaining and a loading state."

2. 500 or blank page on every route

The server-side code is crashing before it can render — usually a missing environment variable or a failing external API call.

Fix: check every env var the AI used (search the code for process.env.) and set each one in your deployment settings. The silent killers are keys that existed in Bolt's sandbox but not in production: Stripe, Supabase, OpenAI, resend, etc.

3. "Internal server error" on form submissions / API routes

Your server route throws on real data. Preview never exercised the edge cases — real webhooks, real file uploads, real user input.

Fix: reproduce with the simplest possible request, then wrap the route in try/catch that logs the error. Better: ship logs to a dashboard (below) so the error tells you its own story.

4. npm install / build errors at deploy time

Bolt's sandbox has packages pre-cached; a cold deploy re-resolves everything. Version conflicts and missing native dependencies surface only at deploy.

Fix: pin exact versions in package.json, remove packages the AI added but never used, and check the build log — the failing package is named in the first error line, not the last.

5. The app works, then randomly dies under real traffic

Classic serverless resource issue: a loop, an unbounded query, or a memory-heavy operation that's fine at 1 request and fatal at 100 concurrent ones.

Fix: watch for CPU/limit errors — they don't show in the app at all, which is exactly why you need out-of-band monitoring (below).

6. "Bolt something went wrong" inside the Bolt editor itself

That's Bolt's own platform error, not your app. Check status.stackblitz.com, wait, retry. Nothing to fix in your code.

How to see the real production errors from a Bolt app

Browser DevTools gets you client errors. But server-side crashes — the 500s, the silent timeouts, the killed processes — never reach your screen. You need the errors captured outside your app:

  1. Create a free FlareLog account (10,000 logs/month, no card)
  2. Add the SDK — in Bolt, prompt: "Install @flarelog/sdk and initialize it in the server entry file with new FlareLog({ apiKey: process.env.FLARELOG_API_KEY }). Wrap uncaught errors and console.error to send logs to FlareLog."
  3. Set FLARELOG_API_KEY in your deploy settings
  4. Deploy — every server error now lands in your FlareLog dashboard with the full message, stack trace, and request context, within seconds

Now the debugging loop with the AI actually works: "Show me the errors from the last hour" → copy the real stack trace → paste it into Bolt: "This error is thrown in /api/checkout when Stripe returns a card error. Handle it and return a 402 with a user-friendly message." Fix verified against reality, not guesses.

The pattern across every AI app builder

Lovable, Bolt, v0, Replit — the story is identical: generous preview, invisible production. If you've hit this in Bolt, our guide to Lovable error logs covers the same problem from the Lovable side, and the FlareLog MCP server lets Cursor or Claude query your production errors directly.

Production doesn't have to be the place your app goes to die mysteriously. Start free and see every error your Bolt app throws.

FAQ

Why does my Bolt.new app show "Application error" after deploying?

Almost always a production-only condition: a missing environment variable, a package that fails on the server runtime, or code that exceeds serverless CPU/memory limits. The preview sandbox hides all three. The exact cause is in the production error — which you can see with browser DevTools (client errors) or an external log capture (server errors).

How do I see server errors from my Bolt.new app?

Bolt's editor can't show production logs. Add an error-logging SDK like FlareLog to your app's server code: it ships every uncaught error and console.error to a dashboard with the full stack trace, so you can fix them with the AI using the real message.

Can Bolt.new fix production errors by itself?

Bolt can fix any error it can see. The bottleneck is visibility: paste the actual production stack trace into the chat and the fix is usually one prompt away. Tools like FlareLog's MCP server close the loop entirely — Claude or Cursor reads your production errors and proposes fixes without copy-paste.

What's the difference between "Bolt something went wrong" and my app's errors?

"Bolt something went wrong" is StackBlitz's platform failing (editor, generation, or build service). "Application error" on your deployed URL is your code failing in production. Check status.stackblitz.com for the first; use production log capture for the second.

Never miss an invisible crash again

FlareLog catches the errors Cloudflare can't log. Set up the Tail Worker in 5 minutes and see every crash, timeout, and cost spike in real time.

Start free →