Permalink
Browse files

fix: support dynamic API_URL for SSR

  • Loading branch information...
pi0 committed Jan 29, 2018
1 parent fd1ef47 commit ea4882a52f72da4b3af00b70cd4d50e4eea52a46
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/module.js
@@ -50,6 +50,8 @@ module.exports = function nuxtAxios (_moduleOptions) {
/* istanbul ignore if */
if (process.env.API_URL) {
options.baseURL = process.env.API_URL
} else {
process.env.API_URL = options.baseURL
}

/* istanbul ignore if */

0 comments on commit ea4882a

Please sign in to comment.