diff --git a/backend/src/index.ts b/backend/src/index.ts index 03ebef9..6a6dcb5 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -6,7 +6,6 @@ import rateLimit from 'express-rate-limit'; import { staffbaseAuth as createStaffbaseAuth } from './middleware/staffbaseAuth'; import { devAuth } from './middleware/devAuth'; -import { checkDbConnection } from './db/client'; import { logger } from './services/logger'; import matchesRouter from './routes/matches'; @@ -110,11 +109,9 @@ app.use( // ============================================================ // Health Check (ohne Auth – für Railway/Render/Uptime-Monitoring) // ============================================================ -app.get('/health', async (_req, res) => { - const dbOk = await checkDbConnection(); - res.status(dbOk ? 200 : 503).json({ - status: dbOk ? 'ok' : 'degraded', - db: dbOk ? 'connected' : 'unreachable', +app.get('/health', (_req, res) => { + res.status(200).json({ + status: 'ok', timestamp: new Date().toISOString(), version: process.env.npm_package_version ?? '1.0.0', });