Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxi): pass value of https through to vite-node (#7271)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Sep 6, 2022
1 parent a4fa070 commit 524ba55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/content/3.api/5.commands/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ Option | Default | Description
The port and host can also be set via NUXT_PORT, PORT, NUXT_HOST or HOST environment variables.

This command sets `process.env.NODE_ENV` to `development`.

::alert{type="info"}
If you are using a self-signed certificate in development, you will need to set `NODE_TLS_REJECT_UNAUTHORIZED=0` in your environment.
::
1 change: 1 addition & 0 deletions packages/nuxi/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default defineNuxtCommand({
const address = listener.server.address() as AddressInfo
currentNuxt.options.server.port = address.port
currentNuxt.options.server.host = address.address
currentNuxt.options.server.https = Boolean(args.https)

await Promise.all([
writeTypes(currentNuxt).catch(console.error),
Expand Down

0 comments on commit 524ba55

Please sign in to comment.