-
-
Notifications
You must be signed in to change notification settings - Fork 779
feat(node,deno,bun): implement env vars, remove srvx-deprecated ones, fix handler docs #4013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,3 +17,14 @@ bun run ./.output/server/index.mjs | |
| ``` | ||
|
|
||
| :read-more{to="https://bun.sh"} | ||
|
|
||
| ### Environment Variables | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same Same markdownlint MD001 concern. Consistent with the project pattern but worth addressing if the project decides to fix heading levels. 🤖 Prompt for AI Agents |
||
|
|
||
| You can customize server behavior using following environment variables: | ||
|
|
||
| - `NITRO_PORT` or `PORT` (defaults to `3000`) | ||
| - `NITRO_HOST` or `HOST` | ||
| - `NITRO_UNIX_SOCKET` - if provided (a path to the desired socket file) the service will be served over the provided UNIX socket. | ||
| - `NITRO_SSL_CERT` and `NITRO_SSL_KEY` - if both are present, this will launch the server in HTTPS mode. In the vast majority of cases, this should not be used other than for testing, and the Nitro server should be run behind a reverse proxy like nginx or Cloudflare which terminates SSL. | ||
| - `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. Defaults to `'false'`. | ||
| - `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds. | ||
|
Comment on lines
+29
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent default for This says the default is Proposed fix-- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds.
+- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `5000` milliseconds.🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -18,6 +18,16 @@ NITRO_PRESET=deno_server npm run build | |||||||||
| deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| ### Environment Variables | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Heading level skips from Static analysis (markdownlint MD001) flags this as jumping from 🧰 Tools🪛 markdownlint-cli2 (0.20.0)[warning] 21-21: Heading levels should only increment by one level at a time (MD001, heading-increment) 🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| You can customize server behavior using following environment variables: | ||||||||||
|
|
||||||||||
| - `NITRO_PORT` or `PORT` (defaults to `3000`) | ||||||||||
| - `NITRO_HOST` or `HOST` | ||||||||||
| - `NITRO_SSL_CERT` and `NITRO_SSL_KEY` - if both are present, this will launch the server in HTTPS mode. In the vast majority of cases, this should not be used other than for testing, and the Nitro server should be run behind a reverse proxy like nginx or Cloudflare which terminates SSL. | ||||||||||
| - `NITRO_SHUTDOWN_DISABLED` - Disables the graceful shutdown feature when set to `'true'`. Defaults to `'false'`. | ||||||||||
| - `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds. | ||||||||||
|
Comment on lines
+28
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same inconsistent Should be Proposed fix-- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `3000` milliseconds.
+- `NITRO_SHUTDOWN_TIMEOUT` - Sets the amount of time (in milliseconds) before a forced shutdown occurs. Defaults to `5000` milliseconds.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
|
|
||||||||||
| ## Deno Deploy | ||||||||||
|
|
||||||||||
| :read-more{to="/deploy/providers/deno-deploy"} | ||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hyphenate “Node.js‑compatible”.
Grammar nit: “Node.js compatible” should be “Node.js‑compatible”.
🧰 Tools
🪛 LanguageTool
[grammar] ~57-~57: Use a hyphen to join words.
Context: ...l preset that directly exports a Node.js compatible handler usable for middleware...
(QB_NEW_EN_HYPHEN)
🤖 Prompt for AI Agents