Skip to content

Conversation

@wadefletch
Copy link
Contributor

@wadefletch wadefletch commented Feb 9, 2026

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

The Node.js server docs list several environment variables that are not actually implemented in the production node server runtime (or at any layer: srvx, h3, etc.):

  • NITRO_UNIX_SOCKET -- commented out with // TODO in src/presets/node/runtime/node-server.ts
  • NITRO_SHUTDOWN_DISABLED -- not referenced in the codebase
  • NITRO_SHUTDOWN_SIGNALS -- not referenced in the codebase
  • NITRO_SHUTDOWN_TIMEOUT -- only used in the dev runner, not the production server
  • NITRO_SHUTDOWN_FORCE -- not referenced in the codebase

This adds "Not yet implemented" warning badges to those env vars so users are not misled.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

The `NITRO_SHUTDOWN_*` env vars and `NITRO_UNIX_SOCKET` are documented
but not implemented in the production node server runtime. Add "Not yet
implemented" badges so users are aware.

Co-authored-by: Cursor <cursoragent@cursor.com>
@wadefletch wadefletch requested a review from pi0 as a code owner February 9, 2026 22:40
@vercel
Copy link

vercel bot commented Feb 9, 2026

@wadefletch is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Feb 9, 2026

📝 Walkthrough

Walkthrough

Documentation update adding "Not yet implemented" status badges to Node.js runtime environment variable entries and standardizing their bullet formatting.

Changes

Cohort / File(s) Summary
Documentation Updates
docs/2.deploy/10.runtimes/1.node.md
Added "Not yet implemented" warning badges to NITRO_UNIX_SOCKET, NITRO_SHUTDOWN_DISABLED, NITRO_SHUTDOWN_SIGNALS, NITRO_SHUTDOWN_TIMEOUT, and NITRO_SHUTDOWN_FORCE environment variable entries. Updated bullet formatting for shutdown-related variables.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The pull request title follows the conventional commits format with a 'docs' type prefix and a clear, descriptive subject that accurately reflects the main change of marking unimplemented environment variables in the Node.js documentation.
Description check ✅ Passed The pull request description clearly explains the changes: marking unimplemented environment variables in Node.js server documentation with 'Not yet implemented' warning badges.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@docs/2.deploy/10.runtimes/1.node.md`:
- Line 39: Update the documentation line for the NITRO_SHUTDOWN_FORCE env var so
its boolean example matches the surrounding formatting; change the unquoted true
to the same quoted style (use `'true'` and `'false'`) in the description of how
the flag behaves (referencing NITRO_SHUTDOWN_FORCE).
- Around line 36-39: Update the descriptions for the NITRO_SHUTDOWN_DISABLED,
NITRO_SHUTDOWN_SIGNALS, NITRO_SHUTDOWN_TIMEOUT, and NITRO_SHUTDOWN_FORCE entries
so they do not imply active behavior or concrete defaults while still noting
they are not implemented; replace the current detailed default/behavior
sentences with concise notes like “Flag planned for graceful shutdown controls —
not yet implemented” (or move implementation details to a future/implementation
note), and ensure the :badge[Not yet implemented] tag remains prominent next to
each variable name to avoid misleading readers.

Comment on lines +36 to +39
- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. If it's set to `'true'`, the graceful shutdown is bypassed to speed up the development process. Defaults to `'false'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_SIGNALS` - Allows you to specify which signals should be handled. Each signal should be separated with a space. Defaults to `'SIGINT SIGTERM'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `'30000'` milliseconds. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Avoid implying active behavior for “Not yet implemented” vars.
The defaults/behavior text can mislead readers into thinking these options currently work. Consider trimming to a short description (or moving details to a future note) until implementation lands.

✂️ Suggested tweak (example)
-- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `'30000'` milliseconds. :badge[Not yet implemented]{type="warning"}
+- `NITRO_SHUTDOWN_TIMEOUT` - Planned timeout for forced shutdown (milliseconds). :badge[Not yet implemented]{type="warning"}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. If it's set to `'true'`, the graceful shutdown is bypassed to speed up the development process. Defaults to `'false'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_SIGNALS` - Allows you to specify which signals should be handled. Each signal should be separated with a space. Defaults to `'SIGINT SIGTERM'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `'30000'` milliseconds. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. If it's set to `'true'`, the graceful shutdown is bypassed to speed up the development process. Defaults to `'false'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_SIGNALS` - Allows you to specify which signals should be handled. Each signal should be separated with a space. Defaults to `'SIGINT SIGTERM'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_TIMEOUT` - Planned timeout for forced shutdown (milliseconds). :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
🧰 Tools
🪛 LanguageTool

[style] ~36-~36: Consider using a different verb to strengthen your wording.
Context: ..., the graceful shutdown is bypassed to speed up the development process. Defaults to '...

(SPEED_UP_ACCELERATE)

🤖 Prompt for AI Agents
In `@docs/2.deploy/10.runtimes/1.node.md` around lines 36 - 39, Update the
descriptions for the NITRO_SHUTDOWN_DISABLED, NITRO_SHUTDOWN_SIGNALS,
NITRO_SHUTDOWN_TIMEOUT, and NITRO_SHUTDOWN_FORCE entries so they do not imply
active behavior or concrete defaults while still noting they are not
implemented; replace the current detailed default/behavior sentences with
concise notes like “Flag planned for graceful shutdown controls — not yet
implemented” (or move implementation details to a future/implementation note),
and ensure the :badge[Not yet implemented] tag remains prominent next to each
variable name to avoid misleading readers.

- `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. If it's set to `'true'`, the graceful shutdown is bypassed to speed up the development process. Defaults to `'false'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_SIGNALS` - Allows you to specify which signals should be handled. Each signal should be separated with a space. Defaults to `'SIGINT SIGTERM'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `'30000'` milliseconds. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Make boolean value formatting consistent.
This line uses unquoted true while the surrounding bullets use 'true'. Aligning reduces confusion in docs.

🔧 Suggested tweak
-- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
+- `NITRO_SHUTDOWN_FORCE` - When set to `'true'`, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- `NITRO_SHUTDOWN_FORCE` - When set to true, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
- `NITRO_SHUTDOWN_FORCE` - When set to `'true'`, it triggers `process.exit()` at the end of the shutdown process. If it's set to `'false'`, the process will simply let the event loop clear. Defaults to `'true'`. :badge[Not yet implemented]{type="warning"}
🤖 Prompt for AI Agents
In `@docs/2.deploy/10.runtimes/1.node.md` at line 39, Update the documentation
line for the NITRO_SHUTDOWN_FORCE env var so its boolean example matches the
surrounding formatting; change the unquoted true to the same quoted style (use
`'true'` and `'false'`) in the description of how the flag behaves (referencing
NITRO_SHUTDOWN_FORCE).

@wadefletch wadefletch changed the title docs: mark unimplemented env vars on node server page docs(node): mark unimplemented env vars Feb 9, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 9, 2026

Open in StackBlitz

npm i https://pkg.pr.new/nitrojs/nitro@4012

commit: a5a98c5

@wadefletch
Copy link
Contributor Author

Folded into #4013 -- env vars that can't be configured through srvx (NITRO_SHUTDOWN_SIGNALS, NITRO_SHUTDOWN_FORCE) are removed from the docs rather than marked as unimplemented.

@wadefletch wadefletch closed this Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document graceful shutdown Outdated/wrong documentation about NITRO_SHUTDOWN env variable

1 participant