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 */