Commit a94446b
fix(studio): move Vercel function config inline to fix pre-build pattern validation error
The `functions` key in vercel.json referenced `api/index.js` — a build
artifact that does not exist in the source tree. Vercel CLI validates
patterns against source files before the build runs, producing:
Error: The pattern "api/index.js" defined in "functions" doesn't match
any Serverless Functions inside the "api" directory.
Remove the `functions` block from vercel.json and add the memory/maxDuration
settings as an inline `export const config` in server/index.ts. This is the
standard Vercel per-function configuration mechanism and is bundled into
api/index.js by esbuild.
Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/85631b23-602d-4fab-b9c9-0bfad16ed0fe
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>1 parent bfde63e commit a94446b
3 files changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
| |||
0 commit comments