mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(common): set defaults for port and host values (#4207)
This commit is contained in:
parent
c9fd78048f
commit
ad020e66fd
@ -32,10 +32,12 @@ export default {
|
||||
https: false,
|
||||
port: process.env.NUXT_PORT ||
|
||||
process.env.PORT ||
|
||||
process.env.npm_package_config_nuxt_port,
|
||||
process.env.npm_package_config_nuxt_port ||
|
||||
'3000',
|
||||
host: process.env.NUXT_HOST ||
|
||||
process.env.HOST ||
|
||||
process.env.npm_package_config_nuxt_host
|
||||
process.env.npm_package_config_nuxt_host ||
|
||||
'localhost'
|
||||
},
|
||||
|
||||
// Dirs
|
||||
|
Loading…
Reference in New Issue
Block a user