fix: use API prod siblysolution/api/d
This commit is contained in:
@ -2,6 +2,6 @@ VITE_APP_NAME=tpay-dashboard-tl
|
|||||||
VITE_APP_VERSION=1=9.1.1
|
VITE_APP_VERSION=1=9.1.1
|
||||||
GENERATE_SOURCEMAP=false
|
GENERATE_SOURCEMAP=false
|
||||||
|
|
||||||
# VITE_APP_API_URL=https://tpay.shiblysolution.id/api
|
VITE_APP_API_URL=https://tpay.shiblysolution.id/api
|
||||||
VITE_APP_API_URL=http://127.0.0.1:4003/api
|
# VITE_APP_API_URL=http://127.0.0.1:4003/api
|
||||||
VITE_ENV=development
|
VITE_ENV=development
|
||||||
|
|||||||
@ -4,9 +4,11 @@ interface apiConfigProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const API_URL = import.meta.env.VITE_APP_API_URL;
|
const API_URL = import.meta.env.VITE_APP_API_URL;
|
||||||
|
console.log(API_URL);
|
||||||
const apiConfig: apiConfigProps = {
|
const apiConfig: apiConfigProps = {
|
||||||
service_dashboard: `${API_URL}${import.meta.env.VITE_ENV != 'development' ? '/d' : ""}`,
|
// service_dashboard: `${API_URL}${import.meta.env.VITE_ENV != 'development' ? '/d' : ''}`,
|
||||||
service_master_data: `${API_URL}/m`,
|
service_dashboard: `${API_URL}/d`,
|
||||||
|
service_master_data: `${API_URL}/m`
|
||||||
};
|
};
|
||||||
|
|
||||||
export { apiConfig };
|
export { apiConfig };
|
||||||
|
|||||||
Reference in New Issue
Block a user