mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
feat: add NUXT_HOST and NUXT_PORT for host retrieval (#3651)
related: #3609
This commit is contained in:
parent
cb18aa6f53
commit
52780d3257
@ -48,9 +48,10 @@ exports.loadNuxtConfig = (argv) => {
|
||||
|
||||
exports.getLatestHost = (argv) => {
|
||||
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 =
|
||||
argv.hostname ||
|
||||
process.env.NUXT_HOST ||
|
||||
process.env.HOST ||
|
||||
process.env.npm_package_config_nuxt_host
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user