feat: add NUXT_HOST and NUXT_PORT for host retrieval (#3651)

related: #3609
This commit is contained in:
Alexander Lichter 2018-08-08 21:18:06 +02:00 committed by Clark Du
parent cb18aa6f53
commit 52780d3257

View File

@ -48,9 +48,10 @@ exports.loadNuxtConfig = (argv) => {
exports.getLatestHost = (argv) => { exports.getLatestHost = (argv) => {
const port = const port =
argv.port || process.env.PORT || process.env.npm_package_config_nuxt_port argv.port || process.env.NUXT_PORT || process.env.PORT || process.env.npm_package_config_nuxt_port
const host = const host =
argv.hostname || argv.hostname ||
process.env.NUXT_HOST ||
process.env.HOST || process.env.HOST ||
process.env.npm_package_config_nuxt_host process.env.npm_package_config_nuxt_host