whiskers.git / backend / worker / wrangler.jsonc
wrangler.jsonc21 lines · 964 B · raw
1{
2  // The one configuration both hosts read: `wrangler dev` and `celld dev`/`celld deploy`.
3  // celld rejects any top-level key outside its list (docs/cloudflare-compat.md), `routes` among
4  // them, so a Cloudflare route belongs to the deployment overlay, never here. Keep to the shared subset.
5  "name": "whiskers-backend",
6  "main": "./build/index.js",
7  // celld does not run esbuild for a prebuilt Worker; wrangler is told the same so neither bundles.
8  "no_bundle": true,
9  "compatibility_date": "2026-09-01",
10  "durable_objects": {
11    "bindings": [{ "name": "HOUSEHOLD_OBJECT", "class_name": "HouseholdObject" }]
12  },
13  // SQLite-backed, the only kind celld has.
14  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["HouseholdObject"] }],
15  "vars": {
16    // The household this deployment serves (the wire carries no credential, so one deployment is one
17    // household; see src/household.rs).
18    "HOUSEHOLD": "home",
19    "WHISKERS_LOG": "info"
20  }
21}