From e48781bb97a3b80c146f9f5d4f404107a1efbd60 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 12 Sep 2023 11:59:57 +0700 Subject: [PATCH] config api prod --- entrypoint.sh | 2 +- src/api/index.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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", },