| name | deploy-vercel |
| description | Deploys funnel pages to Vercel. Covers CLI setup, project init, framework detection, environment variables, and custom domains.
|
Deploy to Vercel
Best for React/Next.js funnels and projects that benefit from edge functions.
Prerequisites
- Node.js installed
- Vercel account (free Hobby tier works for funnels)
Setup
npm install -g vercel
vercel login
vercel
vercel --prod
Configuration (vercel.json)
{
"headers": [
{
"source": "/(.*).html",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=300" }]
},
{
"source": "/(.*).css",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
},
{
"source": "/(.*).js",
"headers": [{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }]
}
],
"redirects": [
{ "source": "/old-page", "destination": "/new-page", "permanent": true }
],
"cleanUrls": true,
"trailingSlash": false
}
Custom Domain
- Go to Project settings → Domains
- Add your domain
- Update DNS: add A record
76.76.21.21 or CNAME to cname.vercel-dns.com
- SSL is automatic
Environment Variables
vercel env add VARIABLE_NAME
Framework Support
Vercel auto-detects: Next.js, React (Vite/CRA), Astro, and static HTML.
No additional configuration needed for supported frameworks.