From 87d6505fbf8c5a6dbc3e459e1873b71b4a009a50 Mon Sep 17 00:00:00 2001 From: "Vaka.pro" Date: Wed, 8 Apr 2026 00:45:24 +0300 Subject: [PATCH] fix(frontend): bundle app version via package.json import instead of Vite define --- frontend/src/app/layouts/AppShellFooter.tsx | 3 ++- frontend/src/frontendVersion.ts | 3 +++ frontend/src/vite-env.d.ts | 2 -- frontend/vite.config.ts | 9 --------- 4 files changed, 5 insertions(+), 12 deletions(-) create mode 100644 frontend/src/frontendVersion.ts diff --git a/frontend/src/app/layouts/AppShellFooter.tsx b/frontend/src/app/layouts/AppShellFooter.tsx index 7b77faa..1966638 100644 --- a/frontend/src/app/layouts/AppShellFooter.tsx +++ b/frontend/src/app/layouts/AppShellFooter.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from "react"; import { getHealth } from "../../api"; +import { FRONTEND_VERSION } from "../../frontendVersion"; export function AppShellFooter(): JSX.Element { const [backendVersion, setBackendVersion] = useState(null); @@ -27,7 +28,7 @@ export function AppShellFooter(): JSX.Element { return (