iterate.com / cloud

git clone https://git.iterate.com/repos/cloud

cloud / internal-packages / cloud-clients / wrangler.jsoncmain at aacbc74

// THE CLOUD'S CLIENTS ALONE, as a dev Worker: src/worker.ts with its own Durable Objects, no
// installer and no container. On the dev account at workers.dev, with no route.
//
// `pnpm deploy:dev` here, with the dev account's credentials. First, the three secrets
// (README "Config") by `wrangler secret bulk <file>`, from clients of its own at the pet shop.
// Without MIND_AUTH and MIND_HOSTNAME it signs every statement with its own key alone (the key
// form). A proof of the mind form adds, for a dev mind of its own:
//   "vars": { "MIND_HOSTNAME": "<the dev mind's control plane>", "MIND_ID": "<its id>" },
//   "services": [{ "binding": "MIND_AUTH", "service": "<its auth Worker>", "entrypoint": "Deliveries" }]
//
// NO PRODUCTION ENV HERE. Production's clients run in `iterate-cloud-prd`, whose config is
// internal-packages/installer/wrangler.jsonc. Two configs must never name one script: a deploy of
// either would replace the other's code, and a migration of one would act on the other's Durable
// Objects. This config gets the name `iterate-cloud-prd` only in the change that removes it from the
// installer's config.
{
  "name": "iterate-cloud-clients-dev",
  "main": "src/worker.ts",
  "account_id": "376ef7ed81b0573f93524de763666c15",
  "compatibility_date": "2026-11-04",
  "compatibility_flags": [
    "nodejs_compat",
    "global_fetch_strictly_public",
    "webcrypto_modern_algorithms",
  ],
  "workers_dev": true,
  "preview_urls": false,
  "observability": { "enabled": true, "head_sampling_rate": 1 },
  "vars": { "GITHUB_CLAIM_DAYS": "14" },
  "durable_objects": {
    "bindings": [
      { "name": "ROUTES", "class_name": "Routes" },
      { "name": "OUTBOX", "class_name": "Outbox" },
      { "name": "BOT", "class_name": "Bot" },
    ],
  },
  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["Routes", "Outbox", "Bot"] }],
}