Fix: Build-Info über API statt Build-Zeit - korrekte Version/Channel-Anzeige zur Runtime

This commit is contained in:
vibe-bot 2025-08-09 16:07:52 +02:00
parent c44d9b7f87
commit 8662a5fbc0
2 changed files with 18 additions and 8 deletions

View file

@ -333,7 +333,14 @@ app.use(express.json());
app.use(cors());
app.get('/api/health', (_req: Request, res: Response) => {
res.json({ ok: true, totalPlays: persistedState.totalPlays ?? 0 });
res.json({
ok: true,
totalPlays: persistedState.totalPlays ?? 0,
buildInfo: {
version: process.env.VITE_APP_VERSION || '1.0.0',
channel: process.env.VITE_BUILD_CHANNEL || 'stable'
}
});
});
// --- Admin Auth ---