fix: 使用 Vercel Functions API 配置
- 移除 builds 和 routes 配置 - 使用 functions 配置指定运行时 - 添加 buildCommand 确保构建 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
78e73fcb8f
commit
444037a50f
14
vercel.json
14
vercel.json
|
|
@ -1,15 +1,9 @@
|
||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"builds": [
|
"buildCommand": "pnpm run build",
|
||||||
{
|
"functions": {
|
||||||
"src": "package.json",
|
"api/*.ts": {
|
||||||
"use": "@vercel/node"
|
"runtime": "@vercel/node@3.0.0"
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"routes": [
|
|
||||||
{
|
|
||||||
"src": "/(.*)",
|
|
||||||
"dest": "/dist/api/index.js"
|
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue