```json
{
"$schema": "
https://openapi.vercel.sh/vercel.json",
"buildCommand": "pnpm build",
"installCommand": "pnpm install",
"outputDirectory": "packages/web/dist",
"builds": [
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"zeroConfig": true,
"installCommand": "pnpm install",
"buildCommand": "pnpm build",
"outputDirectory": "packages/web/dist"
}
},
{
"src": "packages/server/src/main.ts",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "api/(.*)",
"destination": "packages/server/src/main.ts"
}
]
}
```
这是我之前的配置,可以跑 nestjs ,但是原生的 .node 模块我没搞明白怎么配置,后来还是换阿里云了