flagon-io/g1t

public

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

g1t/services/search/wrangler.jsonc

38 lines1,450 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Search across all of g1t, Explore, and a command palette1{
2 "$schema": "../../node_modules/wrangler/config-schema.json",
3 "name": "g1t-search",
4 "account_id": "1e6f2cffa3f445920836e8ebe446bb58",
5 "compatibility_date": "2026-09-26",
6 // Runs next to its database: a search makes several queries in turn,
7 // and each would otherwise cross the distance to it.
8 "placement": { "mode": "smart" },
9 "main": "build/index.js",
10 "build": { "command": "cargo install -q worker-build@0.8.7 && worker-build --release" },
11 // Reached only through service bindings.
12 "workers_dev": false,
13 "d1_databases": [
14 {
15 "binding": "DB",
16 "database_name": "g1t-search",
17 // Create with `wrangler d1 create g1t-search` and put its id here.
18 "database_id": "9d04cbf3-cd02-4544-b3e3-2d78767e13bf",
19 "migrations_dir": "migrations"
20 }
21 ],
22 "services": [
23 { "binding": "IDENTITY", "service": "g1t-identity" },
24 { "binding": "REPOS", "service": "g1t-repos" },
25 { "binding": "WORK", "service": "g1t-work" }
26 ],
27 "queues": {
28 // Its own jobs: a push's files, a repository compared whole, a page
29 // of the backfill. One at a time, so each stays within its caps.
30 "producers": [{ "binding": "JOBS", "queue": "g1t-search-jobs" }],
31 "consumers": [
32 // Every event, to keep the index current.
33 { "queue": "g1t-events-search", "max_batch_size": 20, "max_batch_timeout": 2 },
34 { "queue": "g1t-search-jobs", "max_batch_size": 1, "max_batch_timeout": 1, "max_retries": 3 }
35 ]
36 },
37 "observability": { "enabled": true }
38}