import { collectHealth } from '@/lib/health/check' export const dynamic = 'force-dynamic' export const revalidate = 0 /** * Wird vom Healthcheck des Dienstes `web` benutzt, siehe docs/11-betrieb.md. * 200 solange die Datenbank erreichbar ist, 503 sonst. */ export async function GET(): Promise { const report = await collectHealth() return Response.json(report, { status: report.status === 'down' ? 503 : 200, headers: { 'Cache-Control': 'no-store' }, }) }