diff --git a/entrypoint.sh b/entrypoint.sh index 38b8d06..8067d16 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ ROOT_DIR=/app # Replace env vars in JavaScript files echo "Replacing env constants in JS" -for file in $ROOT_DIR/assets/app.*.js* $ROOT_DIR/js/app.*.js* $ROOT_DIR/index.html $ROOT_DIR/precache-manifest*.js; +for file in $ROOT_DIR/assets/app.*.js* $ROOT_DIR/js/app.*.js* $ROOT_DIR/assets/QSpace-*.js* $ROOT_DIR/index.html $ROOT_DIR/precache-manifest*.js; do echo "Processing $file ..."; diff --git a/src/api/index.ts b/src/api/index.ts index 5481dde..cbbd4bf 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -6,7 +6,6 @@ export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG // if (process.env.VUE_APP_TEST) { // env = "test"; // } - const config = ref({ development: { // API_URI: "https://localhost:7260/api", @@ -18,7 +17,7 @@ const config = ref({ MEET_URI: "meet.frappet.com", }, production: { - API_URI: "https://bma-ehr.frappet.synology.me/api/v1", + API_URI: apiUrlConfig, API_URI_ORG_TREE: "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json", MEET_URI: "meet.frappet.com", },