import { NextResponse } from "next/server"; // Liveness — always 200. No dependency probes (a liveness probe must never // fail on a downstream dep). Unauthenticated by design (documented exception // to the Phase 1 global guard); exposes only app name/version. // TASK-0009 item 4: web → `apps/web/src/app/api/v1/health/route.ts`. const APP = "factory-web"; const VERSION = "0.1.0"; const startedAt = Date.now(); export const dynamic = "force-dynamic"; export function GET() { return NextResponse.json({ status: "ok", app: APP, version: VERSION, uptimeSeconds: Math.round((Date.now() - startedAt) / 1000), timestamp: new Date().toISOString() }); }