import { db } from "@/lib/db"; /** Liveness check for containers and load balancers. Also starts PocketBase if it isn't running yet. */ export async function GET() { try { await db(); return Response.json({ ok: true }); } catch (e) { console.error("[health]", e); return Response.json({ ok: false }, { status: 503 }); } }