Skip to content

feat(api): add GET /api/health liveness probe - #78

Merged
cavewebs merged 1 commit into
mainfrom
cursor/api-health-alternatives-32aa
Nov 5, 2026
Merged

cavewebs merged 1 commit into
mainfrom
cursor/api-health-alternatives-32aa

Conversation

@cavewebs

@cavewebs cavewebs commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Follow-up after #77 (474d934). Soft-launch HOLD. GudBot stays default OFF.

Adds public GET /api/health for self-host and Cloud liveness probes, plus the Growth nit from #76.

Head: 72c9297. All three jobs green.

GET /api/health

  • Route: app/api/health/route.ts, GET only
  • 200 { "ok": true, "status": "ok" } when the process is up
  • No auth, no DB, no env dump
  • Cache-Control: no-store
  • Compose app healthcheck now hits /api/health instead of /
  • Operator note in docs/self-host.md

Process-only on purpose. This repo has no $queryRaw / SELECT 1 health helper, so v1 does not check the database and does not split readiness vs liveness.

Alternatives copy (#76 Growth nit)

lib/alternatives.ts: "usual path is Docker Compose" → "quickest path is Docker Compose"

CI on this head (72c9297)

Run: https://github.com/gudlab/guddesk-core/actions/runs/42005308077

Check Result Wall clock
fast-gate (required) success 56s (09:47:41–09:48:37Z)
Migrations (empty Postgres) (required) success 54s (09:47:41–09:48:35Z)
full-build (informative) success 1m 47s (09:47:41–09:49:28Z)

Required path in parallel is fast-gate + migrations: 56s.

Out of scope

lib/health.test.ts covers the handler (200 + headers), GET-only / no prisma / no env, and the Compose probe URL. Full suite 642 passing with CI env.

Eng handoff: Growth → QA → Kim merge.

Open in Web Open in Cursor 

Public unauthenticated JSON liveness for self-host and Cloud probes.
Process-only: no auth, no DB, no env dump. Compose now probes
/api/health. Alternatives copy: usual path -> quickest path.

Co-authored-by: Timchosen Uzua <timchosen@gmail.com>
@cavewebs
cavewebs merged commit 097a188 into main Nov 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants