Overview
Our main web application is built with Next.js and deployed via Vercel for fast, serverless delivery with minimal operational overhead. This setup ensures automatic deployments from GitHub, preview environments for every pull request, and production-grade hosting with global CDN support.Workflow Summary
-
GitHub Integration
- The repository is connected to Vercel via GitHub.
- Every
pushtomaintriggers a production deployment. - Every PR to
maingenerates a Vercel preview environment.
-
Branch-Based Environments
main→ Productionfeature/*→ Vercel preview deployments- Environment variables can be scoped per environment (e.g., dev, staging, prod)
-
CI/CD & Build
- Vercel handles build, deploy, and cache invalidation.
- Our Next.js app is optimized with ISR (Incremental Static Regeneration) where needed.
- No custom CI/CD required unless doing extra validation steps pre-deploy.
-
Environment Variables
- Managed in the Vercel dashboard
(
Project Settings → Environment Variables) - Secrets like API keys, feature flags, or webhook secrets are stored securely
- Managed in the Vercel dashboard
(
-
Error Monitoring & Logs
- Vercel provides request-level logs per deployment
- Production errors are tracked separately (e.g., via Sentry)
Deployment Rules
- Merges to
mainmust be done via PR (no direct push) - Each PR must pass automated tests and manual QA via preview deployment
- Production deploys are automatically triggered, but can be rolled back via Vercel UI
Why Vercel
- Zero-config Next.js integration
- Blazing-fast global edge network
- Auto-preview for team collaboration
- Tight GitHub + environment management