Skip to content

Commit

Permalink
fix: support dynamic API_URL for SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Jan 29, 2018
1 parent fd1ef47 commit ea4882a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/module.js
Expand Up @@ -50,6 +50,8 @@ module.exports = function nuxtAxios (_moduleOptions) {
/* istanbul ignore if */ /* istanbul ignore if */
if (process.env.API_URL) { if (process.env.API_URL) {
options.baseURL = process.env.API_URL options.baseURL = process.env.API_URL
} else {
process.env.API_URL = options.baseURL
} }


/* istanbul ignore if */ /* istanbul ignore if */
Expand Down

0 comments on commit ea4882a

Please sign in to comment.