Skip to content

Commit

Permalink
feat: use server of nuxt.config.js to set default baseURL (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooookai authored and Pooya Parsa committed May 22, 2019
1 parent 4583988 commit e1120a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand Down

0 comments on commit e1120a9

Please sign in to comment.