{
  "$schema": "node_modules/wrangler/config-schema.json",
  "name": "my-pulseai-collector",
  "main": "pulseai-cloudflare-worker.mjs",
  "compatibility_date": "2026-05-22",
  "workers_dev": false,
  "routes": [],
  "vars": {
    "PULSEAI_SITE_ID": "REPLACE_WITH_YOUR_SITE_ID",
    "PULSEAI_CUSTOMER_HOSTNAME": "www.example.com",
    "PULSEAI_PUBLIC_PATHS_JSON": "[\"/\",\"/pricing\",\"/about\"]"
  },
  "services": [{ "binding": "ORIGIN", "service": "my-existing-private-origin-worker" }],
  "durable_objects": {
    "bindings": [{ "name": "PULSEAI_OUTBOX", "class_name": "PulseAIOutbox" }]
  },
  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["PulseAIOutbox"] }]
  // Set PULSEAI_INGESTION_KEY and PULSEAI_DIAGNOSTICS_TOKEN with wrangler secret put.
  // Never paste either secret into this public configuration or browser code.
  // Only AFTER bindings/secrets are ready, add the customer route and deploy:
  // "routes": [{ "pattern": "www.example.com/*", "zone_name": "example.com" }]
}
