chore(version): Entfernt serverseitige Versions-/Build-Logik; Nightly-Badge bleibt im Header

This commit is contained in:
vibe-bot 2025-08-10 19:49:35 +02:00
parent 7a067aa95f
commit dda30d48fa
2 changed files with 3 additions and 19 deletions

View file

@ -37,9 +37,6 @@ const ALLOWED_GUILD_IDS = (process.env.ALLOWED_GUILD_IDS ?? '')
.split(',')
.map((s) => s.trim())
.filter(Boolean);
// Build/Version-Infos (zur Laufzeit verfügbar machen)
const BUILD_CHANNEL = String(process.env.VITE_BUILD_CHANNEL ?? process.env.BUILD_CHANNEL ?? 'stable');
const APP_VERSION = String(process.env.VITE_APP_VERSION ?? process.env.APP_VERSION ?? '1.0.0');
if (!DISCORD_TOKEN) {
console.error('Fehlende Umgebungsvariable DISCORD_TOKEN');
@ -390,13 +387,7 @@ app.use(express.json());
app.use(cors());
app.get('/api/health', (_req: Request, res: Response) => {
res.json({
ok: true,
totalPlays: persistedState.totalPlays ?? 0,
categories: (persistedState.categories ?? []).length,
version: APP_VERSION,
build: BUILD_CHANNEL
});
res.json({ ok: true, totalPlays: persistedState.totalPlays ?? 0, categories: (persistedState.categories ?? []).length });
});
// --- Admin Auth ---