| 1 | { |
| 2 | "$schema": "../../node_modules/wrangler/config-schema.json", |
| 3 | "name": "g1t-notify", |
| 4 | "account_id": "1e6f2cffa3f445920836e8ebe446bb58", |
| 5 | "compatibility_date": "2026-09-26", |
| 6 | "main": "./src/index.ts", |
| 7 | // Reached only through service bindings. The live socket's viewer comes |
| 8 | // in a header the site sets after checking the session, which is only |
| 9 | // safe to trust because nothing else can reach this Worker. |
| 10 | "workers_dev": false, |
| 11 | "placement": { "mode": "off" }, |
| 12 | "services": [ |
| 13 | // Who a username is, for the inbox's notices (they name people by username). |
| 14 | { "binding": "IDENTITY", "service": "g1t-identity" } |
| 15 | ], |
| 16 | // One feed per person: their tabs' sockets (hibernating), their latest |
| 17 | // notifications, unread counts and push subscriptions, in the object's |
| 18 | // own SQLite storage (src/feed.ts). No D1. |
| 19 | // One presence room per workspace (src/room.ts): who is online, away or |
| 20 | // in Do Not Disturb, and their statuses, passed to everyone there who is |
| 21 | // online. Also in the object's own SQLite storage. |
| 22 | "durable_objects": { |
| 23 | "bindings": [ |
| 24 | { "name": "FEEDS", "class_name": "Feed" }, |
| 25 | { "name": "ROOMS", "class_name": "Room" } |
| 26 | ] |
| 27 | }, |
| 28 | "migrations": [ |
| 29 | { "tag": "v1", "new_sqlite_classes": ["Feed"] }, |
| 30 | { "tag": "v2", "new_sqlite_classes": ["Room"] } |
| 31 | ], |
| 32 | // Web Push (RFC 8292): the public half of the VAPID key pair browsers |
| 33 | // subscribe with, and who the push services may contact. The private |
| 34 | // half is the secret VAPID_PRIVATE_KEY (scripts/ops/vapid-keys.mjs). |
| 35 | // Empty: no pushes, everything else works. |
| 36 | "vars": { "VAPID_PUBLIC_KEY": "BBAhBFy-jgfEKm4IDEWKNN_5Nft9SjHqahXtpuZf1Aohop03XduSZgyat-hhDKXAP2hdtMv8yPX7TfqWyR6vJTo", "VAPID_SUBJECT": "https://g1t.sh" }, |
| 37 | "observability": { "enabled": true, "head_sampling_rate": 0.1 } |
| 38 | } |