Vercel Config Generator
Build a complete vercel.json visually.
Select your framework, configure URL rewrites and custom headers, pick deployment regions,
and tune function timeouts — then copy the ready-to-use JSON.
Frequently Asked Questions
What is vercel.json and when do I need it?▼
vercel.json is Vercel's project configuration file. You need it when you want to customize build behavior beyond Vercel's auto-detection — for example, adding URL rewrites (to proxy API requests), custom response headers (for security or caching), function timeouts, or region configuration. For simple projects, Vercel auto-detects your framework and you may not need it at all.
What's the difference between rewrites and redirects in Vercel?▼
Rewrites forward requests to a new destination transparently — the user's browser URL doesn't change. Redirects send the browser to a new URL (301/302 responses). Use rewrites to proxy API calls to a backend (e.g. /api/:path* → https://api.example.com/:path*) to avoid CORS issues. Use redirects for SEO-friendly URL restructuring where the URL should visibly change.
How do I choose between Vercel deployment regions?▼
Choose regions closest to your users or backend services. iad1 (US East, Virginia) is Vercel's default and primary region. sfo1 (US West) is good for West Coast or Asia-Pacific traffic. lhr1 (London) and cdg1 (Paris) serve European users. sin1 (Singapore) and hnd1 (Tokyo) serve Southeast Asia and Japan. For global apps, deploying to multiple regions reduces latency but increases cost.
What does maxDuration do for Vercel Functions?▼
maxDuration sets the maximum execution time (in seconds) for a serverless function before Vercel terminates it. The Hobby plan allows up to 10s, Pro up to 300s. For API routes that call slow external services or run heavy computations (like AI inference), increasing maxDuration prevents timeout errors. Default is 10s on Hobby and 15s on Pro.
How do I add security headers with vercel.json?▼
Use the headers field to add HTTP response headers to all or specific routes. Common security headers: X-Content-Type-Options: nosniff (prevents MIME sniffing), X-Frame-Options: DENY (prevents clickjacking), Strict-Transport-Security (forces HTTPS), Content-Security-Policy (prevents XSS). Apply them to /(.*) to cover all routes. These headers are injected at the CDN edge, so there's no performance cost.
Can I use vercel.json with Next.js rewrites configured in next.config.js?▼
Yes, but they work at different layers. next.config.js rewrites run inside the Next.js server and can access middleware/auth context. vercel.json rewrites run at the CDN/edge before hitting Next.js — useful for routing to external services. If both are set, vercel.json takes precedence for requests it matches. Avoid duplicating the same rules in both files to prevent confusion.
Related Products
on GumroadPremium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →DevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →You Might Also Need
Docker Compose Generator
Generate docker-compose.yml configurations visually in your browser. Add services, ports, volumes, environment variables, and networks. Export production-ready YAML instantly. Free Docker tool.
Open free tool →
Dockerfile Generator
Interactive wizard to generate production-ready Dockerfiles for Node.js, Python, Go, Java, and Rust. Multi-stage builds, port config, custom layers.
Open free tool →
Kubernetes Manifest Generator
Generate Kubernetes YAML manifests interactively. Create Deployments, Services, Ingresses, ConfigMaps, and Secrets with best-practice annotations. Copy or download ready-to-apply YAML.
Open free tool →
More Free Tools
Related Articles
Best Hosting Platforms for Developers in 2026: Cloudflare vs Vercel vs DigitalOcean
An honest comparison of the top developer hosting platforms in 2026. Cloudflare Pages, Vercel, DigitalOcean App Platform, Railway, and Render — pricing, performance, and when to use each.
Cloudflare Workers vs Vercel Edge Functions: 2026 Comparison
Deep comparison of Cloudflare Workers vs Vercel Edge Functions in 2026: runtime differences, limits, pricing, storage options, developer experience, and when to choose each.
Top Kubernetes Tools for Developers 2026: Helm, k9s, Lens & More
The essential Kubernetes tools every developer needs in 2026. Hands-on guide to k9s, Lens, Helm, Kustomize, stern, kind, skaffold, and must-have kubectl plugins.
Complete Guide to HTTP Security Headers: CSP, HSTS, and Modern Browser Security 2026
Master HTTP security headers in 2026: Content-Security-Policy configuration, HSTS preloading, Permissions-Policy, COEP/COOP for cross-origin isolation, and real-world configs for nginx, Apache, and Next.js.
mise vs nvm vs volta vs fnm: Node.js Version Manager Comparison 2026
Choosing the right Node.js version manager in 2026. We compare mise, nvm, volta, and fnm on speed, cross-language support, CI/CD ergonomics, and developer experience with real benchmarks and config examples.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →