แก้ไฟล env

This commit is contained in:
Kittapath 2024-01-08 15:37:20 +07:00
parent defe861b55
commit 92252e61a3
3 changed files with 7 additions and 4 deletions

View file

@ -3,6 +3,7 @@ import { ref } from "vue";
const env = ref<string>(process.env.NODE_ENV || "development");
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
export const apiUrlConfigReport = import.meta.env.VITE_API_REPORT_URL;
// if (process.env.VUE_APP_TEST) {
// env = "test";
// }
@ -56,9 +57,8 @@ const config = ref<any>({
API_RETIREMENT_URI: `${window.location.protocol}//${window.location.host}/api/v1`,
API_PROBATION_URI: `${window.location.protocol}//${window.location.host}/api/v1/probation`,
API_REPORT2_URI: `${window.location.protocol}//${window.location.host}/api/v2`,
LINK_EVALUATE_PUBLISH: "https://bma-ehr-publish.frappet.synology.me",
API_REPORT_TEMPLATE_URI:
"https://report-server.frappet.synology.me/api/v1/report-template",
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
API_REPORT_TEMPLATE_URI: apiUrlConfigReport,
},
});