This commit is contained in:
focp212@naver.com
2025-09-16 17:40:27 +09:00
parent ee9f56f298
commit bf26e9ff05
21 changed files with 154 additions and 113 deletions

View File

@@ -2,7 +2,12 @@ const { origin } = window.location;
export const CURRENT_URL = `${origin}`;
const getAPIBaseUrl = () => {
return CURRENT_URL;
let rs = CURRENT_URL;
console.log('VITE_APP_ENV : ', import.meta.env.VITE_APP_ENV);
if(import.meta.env.VITE_APP_ENV === 'production'){
rs = import.meta.env.VITE_APP_API_PROXY_HOST;
}
return rs;
};
const getHeaderUserAgent = () => {
let os = 'Android';