Skip to content

Commit e37c623

Browse files
authored
Merge pull request #1045 from objectstack-ai/copilot/fix-api-index-pattern
2 parents 85164b0 + 78bc887 commit e37c623

3 files changed

Lines changed: 14 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/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@objectstack/plugin-msw": "workspace:*",
3232
"@objectstack/plugin-security": "workspace:*",
3333
"@objectstack/runtime": "workspace:*",
34+
"@objectstack/service-ai": "workspace:*",
3435
"@objectstack/service-feed": "workspace:*",
3536
"@objectstack/spec": "workspace:*",
3637
"@radix-ui/react-avatar": "^1.1.11",

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)