name: vercel description: Vercel部署、边缘函数、环境配置和预览部署。 allowed-tools: 读取、写入、编辑、Bash、Glob、Grep
Vercel技能
用于部署到Vercel的专家级协助。
能力
- 配置Vercel项目
- 设置边缘函数
- 管理环境变量
- 配置预览部署
- 为边缘优化
配置
// vercel.json
{
"buildCommand": "npm run build",
"outputDirectory": ".next",
"framework": "nextjs",
"regions": ["iad1"],
"functions": {
"api/**/*.ts": {
"memory": 1024,
"maxDuration": 30
}
},
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Content-Type-Options", "value": "nosniff" }
]
}
]
}
目标流程
- vercel部署
- 边缘函数
- nextjs部署