{
  "$schema": "node_modules/wrangler/config-schema.json",
  "name": "codehost-signal",
  "main": "index.ts",
  "compatibility_date": "2025-01-01",
  "account_id": "0beef4cd2d2da6befa47d8d149d6e157",
  "observability": { "enabled": true },
  "durable_objects": {
    "bindings": [{ "name": "ROOM", "class_name": "Room" }]
  },
  // SQLite-backed Durable Objects are available on the Workers free plan.
  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["Room"] }],
  // The page derives its signaling URL as wss://signal.<page host>, so the
  // Worker is served on signal.codehost.dev via a custom-domain route. This is
  // already provisioned in Cloudflare; re-reconciling it needs a Zone-scoped
  // token, so it's left out of routine deploys (uncomment for first setup).
  // "routes": [{ "pattern": "signal.codehost.dev", "custom_domain": true }]
}
