Edge Feed Snapshot Health Update
Section titled “Edge Feed Snapshot Health Update”This update makes the Cloudflare Worker edge snapshot fallback easier to diagnose and harder to deploy incorrectly.
Changes
Section titled “Changes”/public-feed-snapshot/statusnow returns an inspectable JSON status payload with:readykvBoundconfiguredenabledstatusarticleCountageSecondsversionmessage
- The status endpoint returns HTTP 200 for dashboard inspection, even when the fallback is not ready.
- The actual fallback feed endpoint still returns an error when KV is missing or no snapshot exists.
- Wrangler config generation now requires
NUTSNEWS_KV_NAMESPACE_ID. - Worker CI provides a fake KV namespace id for type/config checks.
- A scheduled/manual GitHub Action checks the live Worker status endpoint and feed payload.
Healthy status
Section titled “Healthy status”Expected healthy payload:
{ "ready": true, "kvBound": true, "status": "hit", "articleCount": 120, "version": 1}Recovery
Section titled “Recovery”If status shows status: "unbound":
- Export
NUTSNEWS_KV_NAMESPACE_ID. - Regenerate Wrangler configs.
- Deploy the Worker shards.
- Run one Worker refresh to publish a new edge snapshot.
- Recheck
/public-feed-snapshot/status.
