Deploying Your Bolt.new App
Bolt.new gives you a working app. Now you need to get it live. Here's the deployment guide.
Option 1: Netlify (Recommended)
- Export your Bolt.new project (download as ZIP)
- Create a GitHub repo and push the code
- Connect Netlify to your GitHub repo
- Set build command:
npm run build - Set publish directory:
dist - Add environment variables in Netlify dashboard
- Deploy!
Option 2: Vercel
Same process — Vercel auto-detects Vite projects. Connect GitHub repo and deploy.
Custom Domain Setup
- In your hosting dashboard, add custom domain
- Update DNS records at your domain provider
- Wait for SSL auto-provisioning
Environment Variables
For Supabase-backed apps, add:
- VITE_SUPABASE_URL
- VITE_SUPABASE_ANON_KEY
Never commit these to your repo.
