feat: add env vars for keepAliveTimeout and headersTimeout (#15125)
authorAndrew Dailey <andrew@shallowbrooksoftware.com>
Fri, 9 Jan 2026 20:34:14 +0000 (14:34 -0600)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 20:34:14 +0000 (13:34 -0700)
commit7a65b7a7326722cb236efcee81b43aecc28d24e0
tree0b4c76c43a722a1e635994e383fedcb8e7626862
parent3305022433f5ebd37f0a413275f8291d1a189d5f
feat: add env vars for keepAliveTimeout and headersTimeout (#15125)

* Check for and apply timeouts for keepAlive and headers

* Update docs with new timeout env vars

* Add changeset for new timeouts

* Run the formatter

* Tweak the docs wording a bit

* Check for empty vars before parsing and validating

* Update documentation/docs/25-build-and-deploy/40-adapter-node.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
* Add a timeout_env helper with corresponding tests

* fix: convert adapter-node tests to TypeScript for project service compatibility

The tsconfig include pattern with brace expansion {js,ts} was not being
recognized by TypeScript's project service used by ESLint. Split into
separate patterns and converted test files to TypeScript.

* format

---------

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
Co-authored-by: Elliott Johnson <hello@ell.iott.dev>
.changeset/odd-lamps-follow.md [new file with mode: 0644]
documentation/docs/25-build-and-deploy/40-adapter-node.md
packages/adapter-node/internal.d.ts
packages/adapter-node/src/env.js
packages/adapter-node/src/index.js
packages/adapter-node/tests/env.spec.ts [new file with mode: 0644]
packages/adapter-node/tests/utils.spec.js [deleted file]
packages/adapter-node/tests/utils.spec.ts [new file with mode: 0644]
packages/adapter-node/tsconfig.json