Deploy on Vercel
Environment variables, preview deployments, edge vs Node runtimes, and database connectivity.
Import project
Connect your Git repository, set the root directory if monorepo, and assign production and preview env vars separately.
Database
Use pooled connection strings compatible with serverless (Neon pooler, Supabase pooler, Prisma Accelerate if enabled).
Cron and tasks
Offload long jobs to background tasks instead of relying on long Vercel function durations.
Protect preview URLs when handling real data; use branch databases where possible.