Skip to content

vercel target: /healthz initialises stores and fails when the database is unavailable #688

Closed

Description

@blove

Problem

On the vercel target /healthz initialises the per-request stores, so when DATABASE_URL is unset or the database is unreachable the endpoint returns 500 ({"error":{"kind":"execution_error","message":"Unexpected runtime server failure"}}). It behaves as a readiness probe, not a liveness probe; a deployment with a missing env var looks completely down rather than "up, not ready".

Proposal

Make /healthz answer 200 without touching stores, and add /readyz (or ?deep=1) that checks the database and reports the failing dependency by name.

Activity

  1. added
    bug
    on Sep 17, 2026
  2. added 2 commits that reference this issue on Sep 17, 2026
    f729bbf
    9127580
  3. added a commit that references this issue on Sep 17, 2026
    f20ba3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions