You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e56ec35
Browse filesBrowse the repository at this point in the historyBrowse files
`max_pipeline: 1` sends each connection's next query only after the previous one answers. Drizzle runs every query as an unnamed statement, and [Hyperdrive](#connect-through-hyperdrive) never answers three or more of those queued on one connection, so a request that runs queries in parallel, such as the signed-in session, hangs without it. `max: 5` keeps parallel queries parallel, on separate connections.
129
+
127
130
On Node (`vite dev`, `db:migrate`) `scopedDatabase` keeps one client per process, so the same config serves both. It closes a Drizzle client on postgres.js or node-postgres; pass `scopedDatabase(create, { dispose })` for another driver.
| The Worker ignores `.dev.vars`, and the bindings table lists none of its variables | Wrangler ran with `--config .output/server/wrangler.json`. Run `wrangler dev` from the app's folder without it. |
268
-
| A Worker-rendered page fails with `n is not defined` in the browser | The Worker is minified with `keep_names` on. Set `"keep_names": false`. |
269
-
|`CONNECTION_CLOSED` or `Cannot perform I/O on behalf of a different request` from the database | The client was created once at module load. Use `scopedDatabase`. |
270
-
|`TLS_HANDSHAKE_FAILED` from the database, and `/api/health/ready` answers `503`| The database's certificate is not signed by a public CA, as with Supabase. [Connect through Hyperdrive](#connect-through-hyperdrive). |
271
-
| Image uploads fail with "The image optimization library (sharp) failed to load" | Remove `storage.image` from the Worker's API config. |
272
-
| Deploy fails with `total sourcemap size is too large` (code `10021`) | Set `"upload_source_maps": false` in `wrangler.jsonc`. |
273
-
| Pages answer `503` and the logs show "Worker exceeded CPU time limit" after about 10 ms of CPU | The account is on Workers Free, which allows 10 ms of CPU per request. Upgrade to Workers Paid (30 s by default). |
274
-
| Deploy fails because the script is too large |[Shrink the Worker](#shrink-the-worker), and check that you are on Workers Paid. |
| The Worker ignores `.dev.vars`, and the bindings table lists none of its variables | Wrangler ran with `--config .output/server/wrangler.json`. Run `wrangler dev` from the app's folder without it. |
272
+
| A Worker-rendered page fails with `n is not defined` in the browser | The Worker is minified with `keep_names` on. Set `"keep_names": false`. |
273
+
|`CONNECTION_CLOSED` or `Cannot perform I/O on behalf of a different request` from the database | The client was created once at module load. Use `scopedDatabase`. |
274
+
|`TLS_HANDSHAKE_FAILED` from the database, and `/api/health/ready` answers `503`| The database's certificate is not signed by a public CA, as with Supabase. [Connect through Hyperdrive](#connect-through-hyperdrive). |
275
+
| Image uploads fail with "The image optimization library (sharp) failed to load" | Remove `storage.image` from the Worker's API config. |
276
+
| Deploy fails with `total sourcemap size is too large` (code `10021`) | Set `"upload_source_maps": false` in `wrangler.jsonc`. |
277
+
| Signed-in requests, such as `/api/@vitnode/core/users/session`, never answer while signed-out ones work | Queries pipelined through Hyperdrive. Set `max_pipeline: 1` on the Postgres connection, see [Give each request its own database client](#give-each-request-its-own-database-client). |
278
+
| Pages answer `503` and the logs show "Worker exceeded CPU time limit" after about 10 ms of CPU | The account is on Workers Free, which allows 10 ms of CPU per request. Upgrade to Workers Paid (30 s by default). |
279
+
| Deploy fails because the script is too large |[Shrink the Worker](#shrink-the-worker), and check that you are on Workers Paid. |
0 commit comments