mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxi): pass value of https
through to vite-node (#7271)
This commit is contained in:
parent
a4fa070ad5
commit
524ba557eb
@ -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.
|
||||
::
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user