BT  ·  2026-10-11

wrangler.jsonc

 1{
 2    "$schema": "node_modules/wrangler/config-schema.json",
 3    "name": "monitor",
 4    "main": "src/index.ts",
 5    "compatibility_date": "2026-10-01",
 6    "workers_dev": false,
 7    "routes": [
 8        {
 9            "pattern": "monitor.rtw.run",
10            "custom_domain": true
11        }
12    ],
13    // Hourly watchdog: makes sure every regional monitor exists and has an alarm set.
14    "triggers": {
15        "crons": [
16            "0 * * * *"
17        ]
18    },
19    "durable_objects": {
20        "bindings": [
21            {
22                "name": "MONITOR",
23                "class_name": "MonitorDO"
24            }
25        ]
26    },
27    "migrations": [
28        {
29            "tag": "v1",
30            "new_sqlite_classes": [
31                "MonitorDO"
32            ]
33        }
34    ],
35    "send_email": [
36        {
37            "name": "EMAIL",
38            "destination_address": "[email protected]"
39        }
40    ],
41    "vars": {
42        "ENDPOINTS": [
43            "https://mymood.at/healthz",
44            "https://infra.sovrn.at/healthz",
45            "https://mx99.eu.sovrn.at/healthz",
46            "https://infra.rtw.run/healthz"
47        ],
48        "CHECK_INTERVAL_SECONDS": 180,
49        "TIMEOUT_MS": 10000,
50        "REMINDER_HOURS": 6,
51        "ALERT_FROM": "[email protected]",
52        "ALERT_TO": "[email protected]",
53        "PUBLIC_URL": "https://monitor.rtw.run"
54    },
55    "observability": {
56        "enabled": true
57    }
58}