{
  // Local development: npx wrangler dev --local  (no Cloudflare login needed; D1 runs in .wrangler/state)
  "name": "wayreceipt",
  "main": "worker/index.js",
  "compatibility_date": "2026-05-01",
  "compatibility_flags": ["nodejs_compat"],
  "assets": {
    "directory": "./site",
    "binding": "ASSETS",
    "html_handling": "auto-trailing-slash",
    "not_found_handling": "404-page",
    "run_worker_first": ["/log", "/log/*", "/log.jsonl", "/stats", "/report", "/mcp", "/admin/*"]
  },
  "d1_databases": [
    // Production D1 database (created 2026-10-23, shared with the Pages project; see docs/DEPLOY.md). --local runs ignore the id.
    { "binding": "DB", "database_name": "wayreceipt-log", "database_id": "b948eb7a-9b2e-4b92-8a6e-bda2224eb7b0", "migrations_dir": "migrations" }
  ],
  "observability": { "enabled": false }
}
