nitrojs / nitrojs/nitro

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

Open
#2,469 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cli dev v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

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
  • Set environment variable NITRO_HOST.
  • run nitro dev
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the nitro dev entry point and the environment-variable documentation linked in the issue. Compare the dev server's handling of NITRO_SSL_CERT, NITRO_SSL_KEY, and NITRO_HOST with the documented runtime behavior; done means each variable affects the dev server as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.