Repository navigation
docs(edge): check the local Vercel bundle with /readyz, not /healthz - #708
Merged
Merged
Conversation
PR #694 made /healthz pure process liveness and added /readyz, which lands after the "Run the Vercel bundle locally" recipe this page gained in #698. The recipe therefore verified nothing: /healthz never builds the request's stores, so it answers 200 whether or not DATABASE_URL resolves, and the whole point of that section is proving the pg fallback reached a local Postgres with no WebSocket proxy. Verified against a real local Postgres on a bundle built from main: /healthz answers 200 with a database that is not there, /readyz answers 200 naming the three probed stores when it is, and 503 naming ECONNREFUSED when it is not. The two sample bodies are that run's output, and the password in the failing connection string does not appear in the response. Also adds /readyz to the rooted surfaces the runtime owns. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
blove
temporarily deployed
to
vercel-preview
September 17, 2026 20:08 — with
GitHub Actions
Inactive
blove
added a commit
that referenced
this pull request
Sep 17, 2026
Neither change affects this page. #705 batches route-discovery errors, and #708 is the edge page's own local-run recipe switching from /healthz to /readyz for the same reason this guide already did. #691 was closed unmerged, so the emitted function directory is still index.func and this page's shadowing argument stands unchanged. Only the lastmod manifest conflicted; regenerated. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Run the Vercel bundle locally" recipe added in #698 verified nothing, because #694 landed after it.
#694 made
GET /healthzpure process liveness and addedGET /readyz. The recipe still called/healthz, which never builds the request's stores, so it answers200whether or notDATABASE_URLresolves. That is the opposite of what the section is for: it exists to prove the newpgfallback reached a plain local Postgres with no WebSocket proxy.Verified, not assumed
Built a Vercel fixture from current main and ran both endpoints against a real local Postgres container:
/healthz200 {"status":"ready"}200 {"status":"ready"}/readyz200, three storesok503 not_ready, namesECONNREFUSEDThe two sample bodies in the diff are that run's actual output. I also ran the documented command verbatim, and confirmed the password in a failing connection string does not appear in the response body, which is what the redaction claim rests on.
/readyzpassing is also an end-to-end confirmation of #698 itself: the checkpointer, threads store, and permissions store all answered over a pooledpgTCP connection to a non-Neon host, with no proxy anywhere.Also
Adds
/readyzto the rooted surfaces the runtime owns, two paragraphs above. That list was written before #694 and did not mention it.Checks
check-docs.mjs, the docs snippet and docs bundle suites, the web SEO and docs component suites, andpnpm lintall pass. The SEO lastmod manifest is regenerated; only the edge route moves.This touches no file that PR #700 touches.
🤖 Generated with Claude Code