Skip to content

Commit 1d49bfd

Browse files
fix: remove functions block from studio vercel.json to fix deployment pattern mismatch
The `functions.api/index.js` pattern references a build artifact that doesn't exist in the source tree. Vercel validates this pattern before the build runs, causing: "The pattern 'api/index.js' doesn't match any Serverless Functions." The per-function config (memory, maxDuration) is already exported from server/index.ts via `export const config`, picked up by @vercel/node at deploy. Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/076a57ec-e7eb-4a6c-a6c7-78c947eaef28 Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent a14609e commit 1d49bfd

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

apps/studio/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
## Unreleased
44

5+
### Patch Changes
6+
7+
- Remove `functions` block from `vercel.json` to fix deployment error:
8+
"The pattern 'api/index.js' defined in `functions` doesn't match any
9+
Serverless Functions inside the `api` directory."
10+
11+
The `api/index.js` file is a build artifact generated by `bundle-api.mjs`
12+
during the Vercel build step — it does not exist in the source tree.
13+
Vercel validates `functions` patterns before running the build, causing
14+
the mismatch. The per-function configuration (`memory`, `maxDuration`)
15+
is already exported from `server/index.ts` via `export const config`,
16+
which the `@vercel/node` runtime picks up at deploy time.
17+
518
### Minor Changes
619

720
- Add collapsible right-side AI Chat floating panel (VS Code Copilot Chat style).

apps/studio/vercel.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99
"VITE_SERVER_URL": "https://play.objectstack.ai"
1010
}
1111
},
12-
"functions": {
13-
"api/index.js": {
14-
"memory": 1024,
15-
"maxDuration": 60,
16-
"includeFiles": "node_modules/{@libsql,better-sqlite3}/**"
17-
}
18-
},
1912
"headers": [
2013
{
2114
"source": "/assets/(.*)",

0 commit comments

Comments
 (0)