Skip to content

Commit b8a510e

Browse files
authored
fix(plugin): don't convert falsy urls to string (#347)
1 parent d8a03bb commit b8a510e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ const setupProgress = (axios) => {
180180
export default (ctx, inject) => {
181181
// baseURL
182182
const baseURL = process.browser
183-
? '<%= options.browserBaseURL %>'
184-
: (process.env._AXIOS_BASE_URL_ || '<%= options.baseURL %>')
183+
? '<%= options.browserBaseURL || '' %>'
184+
: (process.env._AXIOS_BASE_URL_ || '<%= options.baseURL || '' %>')
185185

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

0 commit comments

Comments
 (0)