pr_01m47d15m3e54sn21z27rpy5n9/services/webhooks/wrangler.jsonc

32 lines1,179 bytesCodeBlame
1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-webhooks",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 "main": "build/index.js",
7 "build": { "command": "cargo install -q worker-build@0.8.7 && worker-build --release" },
8 // Reached only through service bindings; it reaches out to the
9 // addresses webhooks are registered at.
10 "workers_dev": false,
11 "d1_databases": [
12 {
13 "binding": "DB",
14 "database_name": "g1t-webhooks",
15 "database_id": "7da97a7e-b4a7-40e3-a129-3b78d654e9bb",
16 "migrations_dir": "migrations"
17 }
18 ],
19 "services": [
20 { "binding": "REPOS", "service": "g1t-repos" },
21 { "binding": "IDENTITY", "service": "g1t-identity" }
22 ],
23 // Every event on the bus, to deliver to the webhooks that want it.
24 "queues": {
25 "consumers": [{ "queue": "g1t-events-webhooks", "max_batch_size": 20, "max_batch_timeout": 1 }]
26 },
27 // Retries that are due, and deliveries old enough to forget.
28 "triggers": { "crons": ["* * * * *"] },
29 // Secret: WEBHOOKS_KEY, 64 hex characters. Webhooks' signing secrets are
30 // sealed with it; without it none can be made.
31 "observability": { "enabled": true }
32}