Skip to content

Commit

Permalink
fix: prefixUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Mar 18, 2019
1 parent 18e5fa1 commit 09a5382
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ const extendKYInstance = instance => {
}

export default (ctx, inject) => {
// Set baseURL
const baseURL = process.browser
// Set prefixUrl
const prefixUrl = process.browser
? '<%= options.browserBaseURL %>'
: (process.env._HTTP_BASE_URL_ || '<%= options.baseURL %>')

const kyDefaults = {
baseURL,
prefixUrl,
headers: {}
}

Expand Down

0 comments on commit 09a5382

Please sign in to comment.