data
Cloudflare Worker health endpoint
deploy · workerd · cloudflare · workers · health-check · monitoring · View on GitHub
Instruction
We're wiring our edge app into uptime monitoring and the probes need a health endpoint to hit.
Build the Worker as worker.js (ES module syntax) in this directory — the local dev server serves that file, and WORKER_URL in your environment points at it. GET /health has to return the JSON body {"status":"ok"} with a JSON content type. Check it actually responds before you call it done; the last "trivial" endpoint we shipped returned HTML from a catch-all route and paged the on-call.
Results
Passed trials out of total, per configuration. Click through for the trial records.