fix(common): set defaults for port and host values (#4207)

This commit is contained in:
Sibbngheid 2018-10-26 22:41:28 +03:00 committed by Pooya Parsa
parent c9fd78048f
commit ad020e66fd

View File

@ -32,10 +32,12 @@ export default {
https: false, https: false,
port: process.env.NUXT_PORT || port: process.env.NUXT_PORT ||
process.env.PORT || process.env.PORT ||
process.env.npm_package_config_nuxt_port, process.env.npm_package_config_nuxt_port ||
'3000',
host: process.env.NUXT_HOST || host: process.env.NUXT_HOST ||
process.env.HOST || process.env.HOST ||
process.env.npm_package_config_nuxt_host process.env.npm_package_config_nuxt_host ||
'localhost'
}, },
// Dirs // Dirs