Skip to content
quarry Artifact [bd0ee45244]
Login

Artifact [bd0ee45244]

Artifact bd0ee45244865d901512d67e20616fc2392422d33525e9ad168ae5a59b468dd5:


quarry-probe

Cloudflare Worker that watches the forge from outside the host. Cron every minute: GET https://zeitforge.app/api/v1/version (10 s timeout; healthy = 200 and ready:true), and when healthy GET /r/quarry/timeline.

Logic lives in src/logic.js as pure functions; npm test runs node --test with no network.

Deploy

  1. cd scripts/probe && npm install
  2. npx wrangler kv namespace create PROBE_STATE, paste the id into wrangler.toml.
  3. In the Cloudflare dashboard, Email Routing for the zone: enable it and verify the destination address.
  4. Edit wrangler.toml: ALERT_TO (the verified address, also destination_address of send_email) and ALERT_FROM (an address on the Email Routing zone).
  5. npx wrangler deploy
  6. Open the workers.dev URL and confirm the JSON state updates each minute.