unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.89k stars 496 forks source link

support `NITRO_SSL_CERT`, `NITRO_SSL_KEY`, `NITRO_HOST` for dev server #2469

Open blowsie opened 4 months ago

blowsie commented 4 months ago

Environment

OS Windows 11

Node

λ node -v
v22.1.0

Pnpm

λ pnpm -v
8.15.7

Nitro

λ pnpm list nitropack
Legend: production dependency, optional only, dev only

devDependencies:
nitropack 2.9.6

Reproduction

Describe the bug

The settings via environment variables defined here don't work with the dev server. https://nitro.unjs.io/deploy/runtimes/node#environment-variables

Additional context

Setting these variables does work in a nuxt projects dev server

Logs

No response