- Push the project to GitHub (or download it as a zip) and import it at vercel.com/new; Vercel detects Vite.
Vercel doesn't run always-on servers. If your project has a long-running backend (websockets, bots, background jobs), use Railway or Render for that part.
Step by step
-
Check your project type
- Vite single-page app (most projects): vite.config.* in the project, build output dist/.
- Framework with a server (e.g. Next.js, Astro SSR): next.config.* or an SSR adapter in the config.
-
Get the code onto GitHub
- Built-in: Project settings → Domains & Hosting → Hosting Provider → Netlify → Publish (custom domains don't carry over automatically).
- Download the project as a .zip, or push it to GitHub, then import into any host.
-
Create the project on Vercel
Go to vercel.com/new, import your GitHub repository, accept the detected framework preset and click Deploy.
-
Check the build settings
Vercel auto-detects Vite, Next.js, TanStack Start (via Nitro) and most frameworks. For a plain Vite app the defaults are build command
npm run buildand outputdist.For Bolt.new: build command
npm run build, output dist (Vite). -
Add environment variables before the first build
In Vercel: Project → Settings → Environment Variables. Copy these from Bolt.new:
-
VITE_SUPABASE_URL / VITE_SUPABASE_ANON_KEY (if using Supabase — names may differ; check your .env)
Changed a value later? Rebuild. Vite bakes variables in at build time. Troubleshoot missing env vars
-
-
Make page refreshes work (Vite / React Router single-page apps)
vercel.json { "$schema": "https://openapi.vercel.sh/vercel.json", "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }Server-rendered projects (TanStack Start, Next.js) don't need this. Vercel docs (opens in a new tab)
-
Update login redirect URLs
Add your new Vercel URL (and later your custom domain) to your auth provider's allowed URLs. In Supabase: Authentication → URL Configuration. Redirect troubleshooting · Check RLS before going live
-
Add your domain
Project → Settings → Domains → Add. Vercel shows the exact DNS records (A record for the apex, CNAME for www) to create at your registrar; HTTPS is issued automatically.
What it will cost
Free tier Hobby: $0 — 100 GB data transfer, 1M CDN requests, 1M function invocations / month. Paid from $20/mo: Pro: $20/month per developer seat, includes $20 of usage credit; 1 TB transfer, 10M CDN requests. Checked 17 Oct 2026 on Vercel's pricing page (opens in a new tab).
- The free Hobby plan is for personal, non-commercial use. A business or monetised app needs Pro.
- Prices exclude VAT/sales tax.