Skip to content
72 linesCodeBlameRaw
1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-deployments",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 "main": "./src/index.ts",
7 // Reached only through service bindings; builds report through the API.
8 "workers_dev": false,
9 "placement": { "mode": "off" },
10 "d1_databases": [
11 {
12 "binding": "DB",
13 "database_name": "g1t-deployments",
14 "database_id": "aa935a8f-845b-4132-8fa3-98f1afba1db5",
15 "migrations_dir": "migrations"
16 }
17 ],
18 "services": [
19 { "binding": "REPOS", "service": "g1t-repos" },
20 { "binding": "WORK", "service": "g1t-work" },
21 { "binding": "IDENTITY", "service": "g1t-identity" },
22 { "binding": "BILLING", "service": "g1t-billing" },
23 { "binding": "RUNNER", "service": "g1t-runner" },
24 // Deployments belong to projects.
25 { "binding": "PROJECTS", "service": "g1t-projects" },
26 // Secrets and variables, with who may read each.
27 { "binding": "ACTIONS", "service": "g1t-actions" },
28 // Production's screenshot, asked for once per deploy (services/og).
29 { "binding": "SCREENSHOTS", "service": "g1t-og", "entrypoint": "Screenshots" },
30 // Each finished build is published: deployment.succeeded or
31 // deployment.failed, for the inbox, webhooks and workflows.
32 { "binding": "EVENTS", "service": "g1t-events" },
33 // Observability: the token each project's apps send OpenTelemetry
34 // with. Every app also names g1t-telemetry as its Tail Worker.
35 { "binding": "TELEMETRY", "service": "g1t-telemetry" }
36 ],
37 // Pull requests opened, pushed to, closed and merged; pushes to the
38 // default branch.
39 "queues": {
40 "consumers": [{ "queue": "g1t-events-deployments", "max_batch_size": 20, "max_batch_timeout": 1, "max_retries": 3, "dead_letter_queue": "g1t-events-dlq" }]
41 },
42 // Builds that died, usage counts, idle previews, apps of ended plans,
43 // and charging a month that is over.
44 "triggers": { "crons": ["*/10 * * * *"] },
45 "vars": {
46 "CLOUDFLARE_ACCOUNT_ID": "1e6f2cffa3f445920836e8ebe446bb58",
47 // The Workers for Platforms namespace apps are uploaded to; the
48 // dispatcher on *.g1t.page (services/pages) reads from the same one.
49 "DISPATCH_NAMESPACE": "g1t-deployments",
50 "SITE": "https://g1t.sh",
51 // The g1t.page zone: custom domains are Cloudflare for SaaS custom
52 // hostnames on it (see src/domains.ts).
53 "CUSTOM_HOSTNAMES_ZONE_ID": "45d1c969bdd9d593756e70d5f45c2cbb",
54 // Docker deployments (src/containers.ts): "on" runs container apps.
55 // Off until Cloudflare's container APIs are checked live against this
56 // account ("Docker deployments" in docs.g1t.sh/guides/deploy-to-cloudflare/);
57 // while off, a container build is refused at its registry step.
58 "CONTAINERS": "off",
59 // Where container apps' Workers report how long they ran.
60 "G1T_API": "https://api.g1t.sh"
61 },
62 // Custom domains: hostname to app, written here and read by the
63 // dispatcher (services/pages). Made by scripts/setup-custom-domains.sh.
64 "kv_namespaces": [{ "binding": "DOMAINS", "id": "14bc5c233d4c46a5bbf23b5367cce5fd" }],
65 // Secret: CLOUDFLARE_API_TOKEN, scoped to Workers Scripts (edit) and
66 // Account Analytics (read), and, for custom domains, SSL and
67 // Certificates (edit) on the g1t.page zone; for Docker deployments, also
68 // Containers (edit), for applications and registry logins. Without it
69 // nothing deploys.
70 // Every log kept: few requests, and a failed deploy must be traceable.
71 "observability": { "enabled": true, "head_sampling_rate": 1 }
72}