Skip to content

Commit

Permalink
fix(plugin): don't convert falsy urls to string (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie authored Mar 30, 2020
1 parent d8a03bb commit b8a510e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ const setupProgress = (axios) => {
export default (ctx, inject) => {
// baseURL
const baseURL = process.browser
? '<%= options.browserBaseURL %>'
: (process.env._AXIOS_BASE_URL_ || '<%= options.baseURL %>')
? '<%= options.browserBaseURL || '' %>'
: (process.env._AXIOS_BASE_URL_ || '<%= options.baseURL || '' %>')

// Create fresh objects for all default header scopes
// Axios creates only one which is shared across SSR requests!
Expand Down

0 comments on commit b8a510e

Please sign in to comment.