diff --git a/.env/.env b/.env/.env index 51ef250..64b732d 100644 --- a/.env/.env +++ b/.env/.env @@ -1,6 +1,7 @@ # GENERAL VITE_UNITY_UI_VERSION=${npm_package_version} VITE_ADMIN_EMAIL=ENV_UNITY_UI_ADMIN_EMAIL +VITE_UNITY_UI_BASE_URL=ENV_UNITY_UI_BASE_URL # Auth VITE_AUTH_OAUTH_CLIENT_ID=ENV_UNITY_UI_AUTH_OAUTH_CLIENT_ID diff --git a/.env/.env.docker.example b/.env/.env.docker.example index 202c636..cddb00c 100644 --- a/.env/.env.docker.example +++ b/.env/.env.docker.example @@ -1,5 +1,6 @@ # GENERAL ENV_UNITY_UI_ADMIN_EMAIL=REPLACE_WITH_ADMIN_EMAIL +ENV_UNITY_UI_BASE_URL=REPLACE_WITH_BASE_URL # Auth ENV_UNITY_UI_AUTH_OAUTH_CLIENT_ID=REPLACE_WITH_COGNITO_USER_POOL_CLIENT_ID diff --git a/src/Config.tsx b/src/Config.tsx index 8121da6..d775346 100644 --- a/src/Config.tsx +++ b/src/Config.tsx @@ -2,6 +2,7 @@ const Config = { ['general']: { version: import.meta.env.VITE_UNITY_UI_VERSION, + base_path: import.meta.env.VITE_UNITY_UI_BASE_URL }, ['getGlobalConfig']: { diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 367e5ab..0cd218c 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -16,6 +16,7 @@ export default function Navbar() { const loggedInUsername = GetUsername(); const userInitials = loggedInUsername.substring(0,1).toUpperCase(); const uiVersion = Config['general']['version']; + const basePath = Config['general']['base_path']; const healthState = useAppSelector((state) => { return state.health; @@ -64,7 +65,7 @@ export default function Navbar() { } + logo={Unity Logo} title="Unity" version={uiVersion} /> @@ -136,7 +137,7 @@ export default function Navbar() { > } + logo={Unity Logo} title="Unity" version={uiVersion} />