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) => {
|
export default (ctx, inject) => {
|
||||||
// Set baseURL
|
// Set prefixUrl
|
||||||
const baseURL = process.browser
|
const prefixUrl = process.browser
|
||||||
? '<%= options.browserBaseURL %>'
|
? '<%= options.browserBaseURL %>'
|
||||||
: (process.env._HTTP_BASE_URL_ || '<%= options.baseURL %>')
|
: (process.env._HTTP_BASE_URL_ || '<%= options.baseURL %>')
|
||||||
|
|
||||||
const kyDefaults = {
|
const kyDefaults = {
|
||||||
baseURL,
|
prefixUrl,
|
||||||
headers: {}
|
headers: {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue