|
1 | 1 | # @objectstack/studio |
2 | 2 |
|
| 3 | +## 4.0.2 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- 5f659e9: fix ai |
| 8 | +- Updated dependencies [5f659e9] |
| 9 | + - @objectstack/driver-memory@4.0.2 |
| 10 | + - @objectstack/service-ai@4.0.2 |
| 11 | + - @objectstack/hono@4.0.2 |
| 12 | + - @objectstack/client@4.0.2 |
| 13 | + - @objectstack/spec@4.0.2 |
| 14 | + - @objectstack/driver-turso@4.0.2 |
| 15 | + - @objectstack/client-react@4.0.2 |
| 16 | + - @objectstack/metadata@4.0.2 |
| 17 | + - @objectstack/objectql@4.0.2 |
| 18 | + - @objectstack/plugin-audit@4.0.2 |
| 19 | + - @objectstack/plugin-auth@4.0.2 |
| 20 | + - @objectstack/plugin-msw@4.0.2 |
| 21 | + - @objectstack/plugin-security@4.0.2 |
| 22 | + - @objectstack/plugin-setup@4.0.2 |
| 23 | + - @objectstack/runtime@4.0.2 |
| 24 | + - @objectstack/service-analytics@4.0.2 |
| 25 | + - @objectstack/service-automation@4.0.2 |
| 26 | + - @objectstack/service-feed@4.0.2 |
| 27 | + |
3 | 28 | ## Unreleased |
4 | 29 |
|
5 | 30 | ### Patch Changes |
|
12 | 37 |
|
13 | 38 | The previous approach used `handle()` from `@hono/node-server/vercel` |
14 | 39 | wrapped in an outer Hono app that delegated to the inner ObjectStack |
15 | | - app via `inner.fetch(c.req.raw)`. On Vercel, the `IncomingMessage` |
| 40 | + app via `inner.fetch(c.req.raw)`. On Vercel, the `IncomingMessage` |
16 | 41 | stream is already drained by the time the inner app's route handler |
17 | 42 | calls `.json()`, causing POST/PUT/PATCH requests to hang indefinitely. |
18 | 43 |
|
19 | 44 | The new approach uses `getRequestListener()` directly, which exposes |
20 | | - the raw `IncomingMessage` via `env.incoming`. For POST/PUT/PATCH |
| 45 | + the raw `IncomingMessage` via `env.incoming`. For POST/PUT/PATCH |
21 | 46 | requests, the body is extracted from Vercel's pre-buffered `rawBody` / |
22 | 47 | `body` properties and a fresh standard `Request` is constructed for |
23 | | - the inner Hono app. This also adds `x-forwarded-proto` URL correction |
| 48 | + the inner Hono app. This also adds `x-forwarded-proto` URL correction |
24 | 49 | for proper HTTPS detection behind Vercel's reverse proxy. |
25 | 50 |
|
26 | 51 | - Remove `functions` block from `vercel.json` to fix deployment error: |
|
96 | 121 | ### Fixes |
97 | 122 |
|
98 | 123 | - **Vercel deployment: Fix `functions` pattern validation error** |
| 124 | + |
99 | 125 | - The `functions` key in `vercel.json` referenced `api/index.js` — a build artifact created by |
100 | 126 | `bundle-api.mjs` — which does not exist in the source tree. Vercel CLI validates patterns against |
101 | 127 | source files before the build runs, producing the error: |
|
0 commit comments