From 09a5382778f5e51068608376287024fb8a92d29b Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Mon, 18 Mar 2019 22:31:55 +0330 Subject: [PATCH] fix: prefixUrl --- lib/plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugin.js b/lib/plugin.js index 83d160a..6c1a073 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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: {} }