diff --git a/README.md b/README.md index ccb2a61..e0fcbb8 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,7 @@ Run locally: npm install npm run dev ``` + +## Platform health probes + +The platform probes `GET /healthz` for startup and liveness, and `GET /` for readiness. Keep `/healthz` static and database-independent so startup and liveness do not depend on database availability. diff --git a/app/healthz/route.ts b/app/healthz/route.ts new file mode 100644 index 0000000..1a64c6e --- /dev/null +++ b/app/healthz/route.ts @@ -0,0 +1,4 @@ +export const dynamic = "force-static"; +export function GET() { + return new Response("ok", { status: 200, headers: { "Content-Type": "text/plain; charset=utf-8" } }); +}