diff --git a/apps/web/.env b/apps/web/.env index 31d4bea3b917abaf828f18dfe7197831a5f210bb..e024c90ecf16f7d7e6f2443dcbeedbec779e0a6a 100644 --- a/apps/web/.env +++ b/apps/web/.env @@ -1,2 +1,3 @@ VITE_BACKEND_URL=https://api.graphpolaris.com VITE_STAGING=local +VITE_GRAPHPOLARIS_VERSION=dev-build \ No newline at end of file diff --git a/apps/web/.env.development b/apps/web/.env.development index 3fc5fd002a8a8661e5fc47775de4b6473c843750..d13895bd98bbe37c46ade0801187dff6b4feb9c5 100644 --- a/apps/web/.env.development +++ b/apps/web/.env.development @@ -5,4 +5,4 @@ VITE_SKIP_LOGIN=true VITE_BACKEND_USER=:3000 VITE_BACKEND_QUERY=:3003 VITE_BACKEND_SCHEMA=:3002 - +VITE_GRAPHPOLARIS_VERSION=dev-build diff --git a/apps/web/.env.production b/apps/web/.env.production index af3e58d1c908dedc543afe43a056eb55fdc800a6..4127ac68bcf7c0b7d82c8d766c708e44cc3165f4 100644 --- a/apps/web/.env.production +++ b/apps/web/.env.production @@ -6,4 +6,5 @@ VITE_SKIP_LOGIN=false VITE_BACKEND_USER=/user VITE_BACKEND_QUERY=/query VITE_BACKEND_SCHEMA=/schema +GRAPHPOLARIS_VERSION=prod-build diff --git a/apps/web/src/components/navbar/navbar.tsx b/apps/web/src/components/navbar/navbar.tsx index 60db1b8f0e7561bf218f9ec35ca1aee3de1e5200..aca99f1eefbee644071e3a048e5745d71d71edc3 100644 --- a/apps/web/src/components/navbar/navbar.tsx +++ b/apps/web/src/components/navbar/navbar.tsx @@ -161,6 +161,10 @@ export const Navbar = (props: NavbarComponentProps) => { /> )} </li> + <div className="menu-title"> + <div className="absolute left-0 h-0.5 w-full bg-offwhite-300"></div> + <h3 className="text-xs mt-3">Version: {import.meta.env.VITE_GRAPHPOLARIS_VERSION}</h3> + </div> </> ) : ( <> @@ -179,6 +183,10 @@ export const Navbar = (props: NavbarComponentProps) => { {/* !TODO */} </button> </div> + <div className="menu-title"> + <div className="absolute left-0 h-0.5 w-full bg-offwhite-300"></div> + <h3 className="text-xs mt-3">Version: {import.meta.env.VITE_GRAPHPOLARIS_VERSION}</h3> + </div> </> )} </ul>