Edge Feed Snapshot Admin Health Update
Section titled “Edge Feed Snapshot Admin Health Update”This update improves the /admin/edge-snapshot dashboard so it can explain Worker fallback problems instead of only showing a generic HTTP error.
Changes
Section titled “Changes”- The web app now parses the Worker status JSON even when the Worker reports an unhealthy state.
- The admin dashboard now shows:
- endpoint configured
- Worker KV binding
- HTTP status
- snapshot age
- article count
- version
- A dev-only admin auth bypass is available only when:
NUTSNEWS_ADMIN_TEST_AUTH_BYPASS=trueNODE_ENV !== "production"
- The offline web E2E regression now verifies that
/admin/edge-snapshotreflects a healthy mocked Worker status.
Healthy dashboard
Section titled “Healthy dashboard”Expected healthy values:
Current Status: Edge fallback readystatus: hitEndpoint configured: YesWorker KV binding: YesHTTP status: 200Article count: greater than 0Version: 1Unhealthy Worker binding
Section titled “Unhealthy Worker binding”If the Worker status payload says status: unbound or kvBound: false, redeploy the Worker with NUTSNEWS_KV_NAMESPACE_ID set.
