Fix: Build-Info über API statt Build-Zeit - korrekte Version/Channel-Anzeige zur Runtime
This commit is contained in:
parent
c44d9b7f87
commit
8662a5fbc0
2 changed files with 18 additions and 8 deletions
|
|
@ -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 ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue