Commit 399f602
fix: remove functions block from vercel.json to fix pre-build validation error
The `functions` block pattern `api/index.js` fails Vercel's pre-build
validation because the file is generated during the build step (by
bundle-api.mjs), not available beforehand.
The in-code `export const config` in server/index.ts already configures
memory and maxDuration — Vercel's @vercel/node runtime picks it up from
the deployed function bundle without any vercel.json pattern matching.
Also reverts the rewrite destination to `/api` (the auto-detected route
for api/index.js) instead of `/api/index.js` (a file path that doesn't
map to a Vercel route).
Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/16819ebf-4d21-4ae9-892d-8c1593b21504
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent e95f3a9 commit 399f602
2 files changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
| |||
25 | 19 | | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
| 22 | + | |
29 | 23 | | |
30 | 24 | | |
31 | 25 | | |
0 commit comments