Vercel
Vercel is a platform for frontend deployment. Connect a Git repo, and every push gets a unique preview URL; the production branch deploys to your main domain. Next.js, React, and static sites are first-class. This guide covers what matters for product and engineering: workflows, previews, and when Vercel is the right default.
Deploying Next.js to Vercel
Why vercel fits product work
main (or your production branch); get production. No manual uploads or “which build is live?” confusion.Core concepts that matter
Projects and git connection
A project is one deployment pipeline. Connect a Git repository (GitHub, GitLab, or Bitbucket); Vercel imports the repo and suggests a framework. One project usually maps to one repo (or one app in a monorepo). Choose the production branch (often main); that branch deploys to the primary domain.
Build and output
Vercel runs a build for each deploy. It detects the framework (Next.js, Create React App, etc.) and runs the right build command. Output can be static files, serverless functions, or a mix. For Next.js, it handles pages, API routes, and middleware automatically. Override build command or output in Project Settings if you need to.
Previews and production
Preview - Every non-production branch (and every PR) gets a unique URL, e.g. your-app-abc123.vercel.app. Use it for QA and demos. Production - The production branch deploys to your main domain (e.g. yourapp.com). Only one production deploy per branch push; redeploys are triggered by new commits or manual “Redeploy.”
Next.js 15 - Deploying Next.js Apps to Vercel
Environment variables and secrets
Set environment variables in the dashboard (or via CLI): per project, and optionally scoped to Production, Preview, or Development. Use them for API keys, feature flags, and backend URLs. For sensitive values, use Vercel’s env UI (or a secret manager) and reference them in the build/runtime.
Serverless and edge
Serverless functions live in /api (or equivalent) and run on request. Edge runs at the edge for low latency. Use them for auth callbacks, webhooks, and small APIs. For heavy or long-running backends, keep that logic on your own infrastructure and call it from Vercel.
Practical habits
When vercel isn’t the fit
Pricing (high level)
Hobby - Free for personal use: unlimited static sites, serverless, and previews. Good for side projects and demos.
Pro - Team features, more bandwidth, password-protected previews, and analytics. Enterprise - SSO, SLA, and compliance. See Vercel’s pricing for current details.
For frontend teams shipping Next.js or React, Vercel is a strong default: connect the repo, get previews and production, and focus on product. Add serverless or edge only when you need them.

