updated config

This commit is contained in:
Warunee Tamkoo 2024-12-10 11:00:34 +07:00
parent 72a1edeef9
commit 5553ccbfcb
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
VITE_API_PUBLISH_URL=VITE_API_PUBLISH_URL
VITE_API_URI_CONFIG=VITE_API_URI_CONFIG

View file

@ -2,7 +2,7 @@
import { ref } from 'vue'
const env = ref<string>(process.env.NODE_ENV || 'development')
export const apiUrlConfig = import.meta.env.VITE_API_PUBLISH_URL
export const apiUrlConfig = `${import.meta.env.VITE_API_URI_CONFIG}/api/v1`
// if (process.env.VUE_APP_TEST) {
// env = "test";
// }
@ -10,7 +10,7 @@ export const apiUrlConfig = import.meta.env.VITE_API_PUBLISH_URL
const config = ref<any>({
development: {
// API_URI: "https://localhost:7260/api",
API_URI: 'https://bma-ehr.frappet.synology.me/api/v1/evaluation',
API_URI: 'https://bma-ehr.frappet.synology.me/api/v1',
},
test: {
API_URI: 'http://localhost:5010/api/v1',