diff --git a/.env.production b/.env.production index 64ae476..065bcc6 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,3 @@ VITE_API_URI_CONFIG=VITE_API_URI_CONFIG -VITE_URL_SSO=VITE_URL_SSO \ No newline at end of file +VITE_URL_SSO=VITE_URL_SSO +VITE_URL_LANDING=VITE_URL_LANDING \ No newline at end of file diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index ea4c9ca..34dd4e2 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -10,6 +10,7 @@ do sed -i 's|VITE_API_URI_CONFIG|'${VITE_API_URI_CONFIG}'|g' $file sed -i 's|VITE_URL_SSO|'${VITE_URL_SSO}'|g' $file + sed -i 's|VITE_URL_LANDING|'${VITE_URL_LANDING}'|g' $file done diff --git a/src/views/MainView.vue b/src/views/MainView.vue index bbc733a..d252ed2 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -19,7 +19,7 @@ const $q = useQuasar() // landing page config url const configParam = { - landingPageUrl: import.meta.env.VITE_URL_SSO, + landingPageUrl: import.meta.env.VITE_URL_LANDING, } const fullName = ref('') //ชื่อผู้ใช้งาน @@ -141,10 +141,7 @@ function onLoad(index: number, done: Function) { } // landing page redirect -const landingPageUrl = ref(getLandingUrl()) -function getLandingUrl() { - return configParam.landingPageUrl -} +const landingPageUrl = ref(configParam.landingPageUrl) /** ฟังก์ชันเรียกข้อมูลผู้ใช่งาน*/ async function fetchKeycloakPosition() {