diff --git a/gui/.env.docker b/gui/.env.docker index 6529b96..2f64177 100644 --- a/gui/.env.docker +++ b/gui/.env.docker @@ -1,2 +1,4 @@ VITE_API_URL=VITE_API_URL_PLACEHOLDER -CFSB_API_URL=CFSB_API_URL_PLACEHOLDER \ No newline at end of file +VITE_CFSB_API_URL=VITE_CFSB_API_URL_PLACEHOLDER +VITE_BUILD_ID=VITE_BUILD_ID_PLACEHOLDER +VITE_CONTEXT=VITE_CONTEXT_PLACEHOLDER \ No newline at end of file diff --git a/gui/.env.production b/gui/.env.production deleted file mode 100644 index 6911199..0000000 --- a/gui/.env.production +++ /dev/null @@ -1,3 +0,0 @@ -NODE_ENV=production -VITE_API_URL=https://exz-nebulous-backend-staging-2003f98f736b.herokuapp.com - diff --git a/gui/index.html b/gui/index.html index eea4cbe..4b1340e 100644 --- a/gui/index.html +++ b/gui/index.html @@ -1,5 +1,5 @@ - + diff --git a/gui/set_env.sh b/gui/set_env.sh index a36f127..8c257a9 100644 --- a/gui/set_env.sh +++ b/gui/set_env.sh @@ -8,9 +8,15 @@ do echo "Setting VITE_API_URL_PLACEHOlDER environment variables ${VITE_API_URL}" sed -i 's|VITE_API_URL_PLACEHOLDER|'${VITE_API_URL}'|g' $file - echo "Setting CFSB_API_URL_PLACEHOLDER environment variables ${CFSB_API_URL}" - sed -i 's|CFSB_API_URL_PLACEHOLDER|'${CFSB_API_URL}'|g' $file - # Your other variables here... + echo "Setting VITE_CFSB_API_URL_PLACEHOLDER environment variables ${VITE_CFSB_API_URL}" + sed -i 's|VITE_CFSB_API_URL_PLACEHOLDER|'${VITE_CFSB_API_URL}'|g' $file + + echo "Setting VITE_BUILD_ID_PLACEHOLDER environment variables ${VITE_BUILD_ID}" + sed -i 's|VITE_BUILD_ID_PLACEHOLDER|'${VITE_BUILD_ID}'|g' $file + + echo "Setting VITE_CONTEXT_PLACEHOLDER environment variables ${VITE_CONTEXT}" + sed -i 's|VITE_CONTEXT_PLACEHOLDER|'${VITE_CONTEXT}'|g' $file + done diff --git a/gui/src/Master.vue b/gui/src/Master.vue index 6714f88..505f367 100644 --- a/gui/src/Master.vue +++ b/gui/src/Master.vue @@ -23,7 +23,7 @@ diff --git a/gui/src/components/DebugInfo/DebugInfo.vue b/gui/src/components/DebugInfo/DebugInfo.vue index 453dd6b..6abbce6 100644 --- a/gui/src/components/DebugInfo/DebugInfo.vue +++ b/gui/src/components/DebugInfo/DebugInfo.vue @@ -8,20 +8,18 @@
App Information
- -
- {{ backend }}
- {{ environment }}
- {{ build_id }}
- {{ context }}
-
+ + Backend + Environment: {{ environment }} + Build: {{ build_id }} + Context: {{ context }}
@@ -30,11 +28,12 @@ import {Menu} from "@/base-components/Headless"; import Lucide from "@/base-components/Lucide"; + const backend = import.meta.env.VITE_API_URL const environment = import.meta.env.NODE_VERSION -const build_id = import.meta.env.BUILD_ID -const context = import.meta.env.CONTEXT - +const build_id = import.meta.env.VITE_BUILD_ID +const context = import.meta.env.VITE_CONTEXT +console.log(import.meta); \ No newline at end of file diff --git a/gui/src/components/Header/Header.vue b/gui/src/components/Header/Header.vue index e117b23..733caac 100644 --- a/gui/src/components/Header/Header.vue +++ b/gui/src/components/Header/Header.vue @@ -33,12 +33,7 @@ Application Dashboard - - - - -