Skip to content

Commit bc58c3d

Browse files
committed
fix: converge-server 修复 Vercel Function 路由 404
- 移除 framework: null 和 outputDirectory: '.' - Vercel 自动检测 api/ 为 Functions 目录并编译 TypeScript - 新增 public/ 目录满足 Vercel 静态输出检测 - 添加 api/health.ts 到 functions 配置
1 parent f99c312 commit bc58c3d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apps/@aether/converge-server/public/.gitkeep

Whitespace-only changes.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
3-
"framework": null,
43
"installCommand": "pnpm install --frozen-lockfile",
54
"buildCommand": "cd ../../.. && node scripts/vercel-build.mjs && pnpm turbo run build --filter=@aether/converge-server",
6-
"outputDirectory": ".",
75
"functions": {
86
"api/ws.ts": {
97
"memory": 1024,
108
"maxDuration": 300
9+
},
10+
"api/health.ts": {
11+
"memory": 128,
12+
"maxDuration": 10
1113
}
1214
}
1315
}

0 commit comments

Comments
 (0)