config api prod
This commit is contained in:
parent
70b40cf36c
commit
e48781bb97
2 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ ROOT_DIR=/app
|
||||||
|
|
||||||
# Replace env vars in JavaScript files
|
# Replace env vars in JavaScript files
|
||||||
echo "Replacing env constants in JS"
|
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
|
do
|
||||||
echo "Processing $file ...";
|
echo "Processing $file ...";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ export const apiUrlConfig = import.meta.env.VITE_API_URI_CONFIG
|
||||||
// if (process.env.VUE_APP_TEST) {
|
// if (process.env.VUE_APP_TEST) {
|
||||||
// env = "test";
|
// env = "test";
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const config = ref<any>({
|
const config = ref<any>({
|
||||||
development: {
|
development: {
|
||||||
// API_URI: "https://localhost:7260/api",
|
// API_URI: "https://localhost:7260/api",
|
||||||
|
|
@ -18,7 +17,7 @@ const config = ref<any>({
|
||||||
MEET_URI: "meet.frappet.com",
|
MEET_URI: "meet.frappet.com",
|
||||||
},
|
},
|
||||||
production: {
|
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",
|
API_URI_ORG_TREE: "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230707_115124.json",
|
||||||
MEET_URI: "meet.frappet.com",
|
MEET_URI: "meet.frappet.com",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue