|
1 | 1 | # @objectstack/studio |
2 | 2 |
|
| 3 | +## 4.0.0 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- 1624851: Fix Vercel deployment API endpoints returning HTML instead of JSON. |
| 8 | + |
| 9 | + The `bundle-api.mjs` script was emitting the serverless function to `api/index.js` |
| 10 | + at the project root, but `vercel.json` sets `outputDirectory: "dist"` — causing |
| 11 | + Vercel to never find the function entrypoint and fall back to the SPA HTML route |
| 12 | + for all `/api/*` requests. |
| 13 | + |
| 14 | + - Change esbuild `outfile` from `api/index.js` to `dist/api/index.js` so the |
| 15 | + bundled serverless function lands inside the Vercel output directory. |
| 16 | + - Add explicit `functions` config in `vercel.json` pointing to `api/index.js` |
| 17 | + (relative to `outputDirectory`) with `@vercel/node@3` runtime. |
| 18 | + - Remove obsolete `.gitignore` entries for `api/index.js` and `api/index.js.map` |
| 19 | + (now emitted under `dist/` which is already git-ignored). |
| 20 | + |
| 21 | +- Updated dependencies [f08ffc3] |
| 22 | +- Updated dependencies [e0b0a78] |
| 23 | + - @objectstack/spec@4.0.0 |
| 24 | + - @objectstack/client@4.0.0 |
| 25 | + - @objectstack/runtime@4.0.0 |
| 26 | + - @objectstack/hono@4.0.0 |
| 27 | + - @objectstack/objectql@4.0.0 |
| 28 | + - @objectstack/plugin-auth@4.0.0 |
| 29 | + - @objectstack/client-react@4.0.0 |
| 30 | + - @objectstack/metadata@4.0.0 |
| 31 | + - @objectstack/driver-memory@4.0.0 |
| 32 | + - @objectstack/driver-turso@3.3.2 |
| 33 | + - @objectstack/plugin-audit@4.0.0 |
| 34 | + - @objectstack/plugin-msw@4.0.0 |
| 35 | + - @objectstack/plugin-security@4.0.0 |
| 36 | + - @objectstack/service-feed@4.0.0 |
| 37 | + |
3 | 38 | ## Unreleased |
4 | 39 |
|
5 | 40 | ### Enhancements |
|
0 commit comments