diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d5a6b0d..2e3b3c9 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata, Viewport } from "next"; import { TopNav } from "@/components/TopNav"; import { getSessionUser } from "@/lib/auth/session"; -import { APP_NAME, APP_TAGLINE } from "@/lib/config"; +import { APP_NAME, APP_TAGLINE, APP_VERSION } from "@/lib/config"; import "./globals.css"; /** @@ -52,7 +52,7 @@ export default async function RootLayout({ diff --git a/src/lib/config.ts b/src/lib/config.ts index 5aea2ca..2ba13a4 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -12,6 +12,12 @@ function trimmed(value: string | undefined): string | null { return result ? result : null; } +/** + * Version aus der package.json – eine einzige Quelle. Vorher stand sie + * zusaetzlich in der Fusszeile und lief prompt auseinander. + */ +export { version as APP_VERSION } from "../../package.json"; + /** Anzeigename der Instanz – Seitentitel, Kopfzeile, Passkey-Dialog. */ export const APP_NAME = trimmed(process.env.APP_NAME) ?? "Nebula";