diff --git a/apps/web/src/layout/Footer.tsx b/apps/web/src/layout/Footer.tsx index 6c4751a..07bba57 100644 --- a/apps/web/src/layout/Footer.tsx +++ b/apps/web/src/layout/Footer.tsx @@ -3,11 +3,16 @@ import { Link } from 'react-router-dom'; import { usePageActionsSlot } from './page-actions'; +/** The running Dorfteich version — injected at build time (the Dockerfile + * passes the release tag as VITE_APP_VERSION); dev builds show the dev tag. */ +const APP_VERSION: string = (import.meta.env.VITE_APP_VERSION as string) || '0.0.0-dev'; + /** * The app-wide footer (issue #82): legal links on every view — editor, * public pages, and auth screens all render inside AppLayout, so this one * spot covers them all. Since the M10 follow-ups the active page portals - * its connection-status icon into the left half; the legal links sit right. + * its connection-status icon into the left half (with the instance version + * next to it, #126); the legal links sit right. */ export function Footer(): React.JSX.Element { const { t } = useTranslation('legal'); @@ -15,6 +20,7 @@ export function Footer(): React.JSX.Element { return (