Repository Public
1import { sql } from "@/lib/db";23export const dynamic = "force-dynamic";4/** Liveness for the orchestrator and the gateway: the process answers and reaches its database. No detail leaks. */5export async function GET() {6 try { await sql`SELECT 1`; return Response.json({ ok: true }, { headers: { "Cache-Control": "no-store" } }); }7 catch { return Response.json({ ok: false }, { status: 503, headers: { "Cache-Control": "no-store" } }); }8}9