Skip to content
29 linesCodeBlameRaw
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 "durable_objects": {
20 "bindings": [{ "name": "FEEDS", "class_name": "Feed" }]
21 },
22 "migrations": [{ "tag": "v1", "new_sqlite_classes": ["Feed"] }],
23 // Web Push (RFC 8292): the public half of the VAPID key pair browsers
24 // subscribe with, and who the push services may contact. The private
25 // half is the secret VAPID_PRIVATE_KEY (scripts/ops/vapid-keys.mjs).
26 // Empty: no pushes, everything else works.
27 "vars": { "VAPID_PUBLIC_KEY": "BBAhBFy-jgfEKm4IDEWKNN_5Nft9SjHqahXtpuZf1Aohop03XduSZgyat-hhDKXAP2hdtMv8yPX7TfqWyR6vJTo", "VAPID_SUBJECT": "https://g1t.sh" },
28 "observability": { "enabled": true, "head_sampling_rate": 0.1 }
29}