Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

38 linesCodeBlameRaw
1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-work",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 // Runs next to its database: a request makes several queries in turn,
7 // and each would otherwise cross the distance to it.
8 "placement": { "mode": "off" },
9 "main": "build/index.js",
10 "build": { "command": "node ../../scripts/build-rust-worker.mjs" },
11 "workers_dev": false,
12 "d1_databases": [
13 {
14 "binding": "DB",
15 "database_name": "g1t-work",
16 "database_id": "f35a9022-e36b-4547-b596-9ab9d5f1c47a",
17 "migrations_dir": "migrations"
18 }
19 ],
20 // Attachments' bytes (src/attachments.rs), in the namespace the
21 // usercontent origin serves from (apps/web/workers/usercontent.ts),
22 // under attachments/<id>.
23 "kv_namespaces": [{ "binding": "AVATARS", "id": "e627b571f07047e187c03e1fc2b3bbdd" }],
24 "services": [
25 { "binding": "IDENTITY", "service": "g1t-identity" },
26 { "binding": "REPOS", "service": "g1t-repos" },
27 { "binding": "EVENTS", "service": "g1t-events" },
28 { "binding": "ACTIONS", "service": "g1t-actions" }
29 ],
30 "queues": {
31 "consumers": [{ "queue": "g1t-events-work", "max_batch_size": 100, "max_batch_timeout": 1, "max_retries": 3, "dead_letter_queue": "g1t-events-dlq" }]
32 },
33 // Logs of a quarter of requests: every issue and pull request page asks
34 // it, so keeping every one costs more than it tells, and a quarter
35 // still catches a rare error within hours. Repos, which it asks most,
36 // logs its slow answers as fields (`answered_ms`, services/repos/src/lib.rs).
37 "observability": { "enabled": true, "head_sampling_rate": 0.25 }
38}