697 B
697 B
Vercel
CLI
npm i -g vercel
vercel login
vercel # preview
vercel --prod # production
Config: vercel.json
{
"buildCommand": "npm run build",
"outputDirectory": "dist",
"framework": null,
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}
Detection
vercel.json,.vercel/directory- Auto-detects Next.js, Vite, Remix frameworks
Free Tier (Hobby)
- 100GB bandwidth/mo, 1M edge requests/mo
- Non-commercial use only
- 10s function timeout
- Commercial requires Pro ($20/mo)
Rollback
vercel rollback [deployment-url]
Best For
Frontend frameworks (Next.js first-class), serverless APIs, SPAs