Skip to content

Add public GET /api/health - #40

Merged
ralyodio merged 1 commit into
masterfrom
ops/health-endpoint
Oct 6, 2026
Merged

ralyodio merged 1 commit into
masterfrom
ops/health-endpoint

Conversation

@ralyodio

@ralyodio ralyodio commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Adds GET /api/health (Next.js route handler) for status.profullstack.com.

  • 200 {"status":"ok","db":"ok"} after select 1 via db() (libsql-pg over Postgres), 3s timeout
  • 503 {"status":"error","db":"down"} on failure, no error details
  • Cache-Control: no-store, no auth. Middleware (crawl gateway + 100/min throttle) is not auth and lets a monitor through, so it is left as is

Before: 404 because no route existed.

Verified: typecheck, bun test (36 pass), build, and next start returning 503 + no-store against an unreachable Postgres.

🤖 Generated with Claude Code

Returns 200 {"status":"ok","db":"ok"} after a select 1 (3s ceiling),
503 {"status":"error","db":"down"} otherwise. No auth, no-store, no
error details. For status.profullstack.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 7a883cb into master Oct 6, 2026
3 checks passed
@ralyodio
ralyodio deleted the ops/health-endpoint branch October 6, 2026 18:44
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.

1 participant