How to migrate off Bolt.new and deploy independently (2026)
How to migrate off Bolt.new and deploy independently (2026)
Bolt.new code is yours — it runs in StackBlitz but can be exported and deployed to Vercel, Netlify, or Railway. The code export itself is easy. The hard parts: (1) your Supabase instance might be auto-created and need manual export, (2) your environment variables exist only in StackBlitz’s context, (3) your deploy target needs different configuration than StackBlitz’s auto-setup. This guide walks every step.
Quick fix for How to migrate off Bolt.new and
Step 1 — Export your code
In StackBlitz, click the hamburger menu → Download Project. This gives you a ZIP of the full codebase.
Unzip it, run npm installlocally. If it doesn’t run with npm run dev, fix those errors first before attempting to deploy.
Deeper fixes when the quick fix fails
- 02
Step 2 — Migrate your Supabase database
If Bolt auto-created a Supabase project: go to supabase.com, find your project, go to Settings → Database → Connection String.
Export your data with
pg_dump. Create a new Supabase project (your project, with your credentials). Import the data. Update your env vars to point at the new project. - 03
Step 3 — Configure environment variables
Create
.env.localwith:NEXT_PUBLIC_SUPABASE_URL=... NEXT_PUBLIC_SUPABASE_ANON_KEY=... SUPABASE_SERVICE_ROLE_KEY=... STRIPE_SECRET_KEY=... STRIPE_WEBHOOK_SECRET=...
Test locally with
npm run dev. Then add the same variables to your Vercel project: Settings → Environment Variables. - 04
Step 4 — Deploy to Vercel
Push your code to GitHub. Connect the repo to Vercel. Set the framework to Next.js (or your actual framework). Verify the build command matches your
package.json.Deploy. Check Vercel build logs for errors — most failures at this step are missing env vars.
Other migration targets
The same process works for Netlify (use dist or .next as publish dir), Railway (auto-detects framework), and Render. The code export stays the same; only the deploy target configuration changes.
Why AI-built apps hit How to migrate off Bolt.new and
Bolt.new runs in StackBlitz WebContainers, which auto-inject environment variables, auto-configure Supabase connections, and handle CORS automatically. When you export, none of that follows you. You’re starting fresh on a real hosting environment.
That’s why the same users who report “every new deployment deploys into another universe rather than updating the existing site” struggle with migration: the code works in preview because StackBlitz props it up. On Vercel or Netlify, you have to wire every connection by hand.
“Every new deployment deploys into another universe rather than updating the existing site.”
Diagnose How to migrate off Bolt.new and by failure mode
Follow these steps in order. Each step has a common failure mode noted.
| Step | Common failure | Prevention |
|---|---|---|
| Export code from StackBlitz | Missing files not tracked in StackBlitz | Download full ZIP, not copy-paste |
| Set up Supabase outside Bolt | Using Bolt's auto-created project with lost credentials | Export database, create new project |
| Configure env vars on Vercel | Forgetting NEXT_PUBLIC_ prefix for client-side vars | Copy from Supabase project settings |
| Deploy to Vercel | Build fails due to missing dependencies | Run npm install locally first |
Related errors we fix
- Bolt.new app broken after deploy? 5 common causesread the fix →
- Bolt.new Supabase RLS disabled — fix the data leakread the fix →
- Bolt.new preview works, production brokenread the fix →
- Bolt.new burning through millions of tokens?read the fix →
- How to migrate off AI app builders (guide)read the fix →
- Bolt to Next.js migration guideread the fix →
Still stuck with How to migrate off Bolt.new and?
If any of these apply, a fixed-price migration will get you off Bolt in 48 hours:
- →You've been stuck on the migration for >8 hours
- →You don't have admin access to your Supabase project
- →Your production deploy keeps failing with env var errors
- →You need custom domain, SSL, and monitoring set up
How to migrate off Bolt.new and questions
Can I export my Bolt.new code and own it completely?+
What's the fastest way to get off Bolt.new?+
Do I need to migrate Supabase if Bolt set it up for me?+
Why does my app break after migrating off Bolt.new?+
Can I deploy my Bolt.new app to Netlify instead of Vercel?+
What does a full Bolt.new migration cost?+
Ship the fix. Keep the fix.
Emergency Triage restores service in 48 hours. Break the Fix Loop rebuilds CI so this error cannot ship again.
Hyder Shah leads Afterbuild Labs, shipping production rescues for apps built in Lovable, Bolt.new, Cursor, Replit, v0, and Base44. our rescue methodology.
How to migrate off Bolt.new and experts
If this problem keeps coming back, you probably need ongoing expertise in the underlying stack.