Here's what no one tells you: Bolt.new makes it stupidly easy to build apps, but deploying them to production is where dreams go to die.
Your app works perfectly in the WebContainer. The AI spun up a beautiful interface, connected to Supabase, added auth flows, everything runs smooth on bolt.host. Then you try to deploy to Netlify or Vercel and suddenly nothing works.
The Classic Build Failure Cycle
Day 1: "Deploy to production" - sounds simple enough.
Day 2: TypeError: fetch failed
- ok, probably a URL issue.
Day 3: ECONNREFUSED 127.0.0.1:3000
- wait, localhost doesn't exist in production?
Day 4: Fixed URLs, now getting Access to XMLHttpRequest blocked by CORS policy
.
Day 5: Fixed CORS, but now process.env.SUPABASE_KEY is undefined
.
Day 6: Environment variables set, but build fails with Module not found: Error: Can't resolve './components/SomeComponent'
because the AI used inconsistent import paths.
Sound familiar? I've been through this cycle with every Bolt.new project I've tried to ship. The AI builds for the WebContainer environment, which has different assumptions than actual web servers.
The Core Problems
WebContainer vs Real Servers: Bolt.new's WebContainer runs Node.js in your browser. Real deployment platforms like Netlify and Vercel have different file systems, networking rules, and environment handling. What works locally doesn't translate directly.
AI-Generated Assumptions: The AI assumes certain npm packages are installed, makes API calls to localhost, and sometimes imports files with wrong case sensitivity. These work fine in development but explode in production builds on Linux servers.
Missing Production Configs: Bolt.new doesn't automatically generate production-ready configs. No production environment variables, no proper error boundaries, no CDN optimization. It builds for demo mode, not real user traffic.
Environment Variable Hell: The AI might hardcode database URLs or API endpoints that only exist in the WebContainer. Moving to production means reconfiguring every external service connection.