package.json build script defaults to NITRO_PRESET=vercel. This page covers the pre-deploy checklist, Vercel setup, and alternative deployment targets.
Pre-deploy checklist
Run these commands in order before every production deployment. They catch type errors, test regressions, and schema drift before your code reaches users:Deployment targets
- Vercel
- Cloudflare Workers
- Node.js
Vercel is the recommended deployment target. The
package.json build command is pre-configured:Deploy steps
- Push your repository to GitHub (or GitLab / Bitbucket).
- Go to vercel.com → Add New Project → import your repository.
- Vercel auto-detects the build command from
package.json. Confirm the framework preset is Other (not Next.js). - Before clicking Deploy, open Environment Variables and add every variable from the table below.
- Click Deploy.
Required environment variables
Set these in Vercel Dashboard → Project → Settings → Environment Variables:VITE_ prefixed variables are embedded into the client bundle at build time. Never set SUPABASE_SERVICE_ROLE_KEY or RESEND_API_KEY with a VITE_ prefix — doing so would expose them to every browser that loads your app.Custom domain
After the initial deployment succeeds, go to Vercel Dashboard → Project → Settings → Domains and add your custom domain. UpdateBETTER_AUTH_URL and VITE_APP_URL to match the custom domain, then redeploy.