Skip to content
Permalink
Browse files

feat: use `server` of nuxt.config.js to set default baseURL (#245)

  • Loading branch information...
ooookai authored and pi0 committed May 22, 2019
1 parent 4583988 commit e1120a9aaf2874a4b1517b0efff71d509690ec15
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/module.js
@@ -13,6 +13,7 @@ function axiosModule(_moduleOptions) {
moduleOptions.port ||
process.env.PORT ||
process.env.npm_package_config_nuxt_port ||
(this.options.server && this.options.server.port) ||
3000

// Default host
@@ -21,6 +22,7 @@ function axiosModule(_moduleOptions) {
moduleOptions.host ||
process.env.HOST ||
process.env.npm_package_config_nuxt_host ||
(this.options.server && this.options.server.host) ||
'localhost'

/* istanbul ignore if */

0 comments on commit e1120a9

Please sign in to comment.
You can’t perform that action at this time.