แก้ env

This commit is contained in:
Kittapath 2023-12-24 02:02:34 +07:00
parent 7dfb3a2f47
commit 13a02a7f04
4 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,8 @@ import { ref } from "vue";
const env = ref<string>(process.env.NODE_ENV || "development");
export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG;
export const apiUrlConfigPublish = import.meta.env.VITE_API_PUBLISH_URL;
// if (process.env.VUE_APP_TEST) {
// env = "test";
// }
@ -22,7 +24,7 @@ const config = ref<any>({
API_URI_ORG_TREE:
"https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
MEET_URI: "meet.frappet.com",
LINK_EVALUATE_PUBLISH: `${window.location.protocol}//${window.location.host}`,
LINK_EVALUATE_PUBLISH: apiUrlConfigPublish,
},
});