From bc58738c6b1158bd6e6efd45372da9765b8da577 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 30 Jan 2020 23:10:26 +0100 Subject: [PATCH] fix(module): read port and host from options/cli before fallback --- lib/module.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/module.js b/lib/module.js index cd2841a..41e1f21 100755 --- a/lib/module.js +++ b/lib/module.js @@ -14,6 +14,7 @@ function httpModule (_moduleOptions) { moduleOptions.port || process.env.PORT || process.env.npm_package_config_nuxt_port || + (this.options.server && this.options.server.port) || 3000 // Default host @@ -22,6 +23,7 @@ function httpModule (_moduleOptions) { moduleOptions.host || process.env.HOST || process.env.npm_package_config_nuxt_host || + (this.options.server && this.options.server.host) || 'localhost' /* istanbul ignore if */