From 92285b11fce6fd8976e540e794d4a0ea16f933b7 Mon Sep 17 00:00:00 2001 From: Florian Wilde Date: Sun, 26 Jul 2026 01:04:42 +0200 Subject: [PATCH] fix: Versionsnummer aus einer einzigen Quelle Die Fusszeile zeigte v0.2.0, die package.json stand auf 0.1.0 - beim Auth-Feature hatte ich nur die Anzeige hochgezaehlt. Jetzt kommt die Version aus der package.json, kann also nicht mehr auseinanderlaufen. Stand: 0.4.0. Co-Authored-By: Claude Opus 5 (1M context) --- src/app/layout.tsx | 4 ++-- src/lib/config.ts | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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";