mirror of https://github.com/sundowndev/http.git
fix: prefixUrl
parent
18e5fa1f7a
commit
09a5382778
|
@ -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: {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue