Skip to content
quarry Artifact [8000253b7d]
Login

Artifact [8000253b7d]

Artifact 8000253b7d7e04ffff6fddee97298cf53ffba2e14e86ca21f099e86c04ae7ff9:


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.

Alerts go out as text plus an HTML card in quarry's email design (src/card.js, the application variant: the QUARRY lockup tile from zeitforge.app, whose alt text carries the name when the forge is down).

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. Confirm craftdesign.group is enabled for Email Sending: npx wrangler email sending list. Do not enable Email Routing; it rewrites MX records.
  4. ALERT_TO and ALERT_FROM in wrangler.toml are already set (ALERT_FROM must be on the onboarded domain); the send_email binding has no destination_address.
  5. npx wrangler deploy
  6. Open the workers.dev URL and confirm the JSON state updates each minute.