Skip to content
File

Blob: wrangler.jsonc

2.1 KB
1{
2 "$schema": "node_modules/wrangler/config-schema.json",
3 "name": "git-on-cloudflare",
4 "main": "src/worker/index.ts",
5 "compatibility_date": "2026-05-13",
6 "compatibility_flags": [
7 "nodejs_als"
8 ],
9 "workers_dev": false,
10 "routes": [
11 {
12 "pattern": "git-on-cloudflare.com",
13 "custom_domain": true
14 },
15 {
16 "pattern": "git.limic.dev",
17 "custom_domain": true
18 }
19 ],
20 "limits": {
21 "cpu_ms": 300000
22 },
23 "durable_objects": {
24 "bindings": [
25 {
26 "name": "REPO_DO",
27 "class_name": "RepoDurableObject"
28 }
29 ]
30 },
31 "migrations": [
32 {
33 "tag": "v1",
34 "new_sqlite_classes": [
35 "RepoDurableObject"
36 ]
37 },
38 {
39 "tag": "v2",
40 "new_sqlite_classes": [
41 "AuthDurableObject"
42 ]
43 },
44 {
45 "tag": "v3",
46 "deleted_classes": [
47 "AuthDurableObject"
48 ]
49 }
50 ],
51 "kv_namespaces": [
52 {
53 "binding": "ROUTES",
54 "id": "4e471bad6c5e44ceb91c4adf5559cb44"
55 }
56 ],
57 "d1_databases": [
58 {
59 "binding": "DB",
60 "database_name": "git-on-cloudflare",
61 "database_id": "1fd98d8b-92b8-4a12-852a-e218ce362149",
62 "migrations_dir": "drizzle/d1"
63 }
64 ],
65 "r2_buckets": [
66 {
67 "binding": "REPO_BUCKET",
68 "bucket_name": "git-repos"
69 }
70 ],
71 "queues": {
72 "producers": [
73 {
74 "binding": "REPO_TASKS_QUEUE",
75 "queue": "git-on-cloudflare-repo-maint"
76 }
77 ],
78 "consumers": [
79 {
80 "queue": "git-on-cloudflare-repo-maint",
81 "max_batch_size": 1,
82 "max_batch_timeout": 1
83 }
84 ]
85 },
86 "observability": {
87 "enabled": true
88 },
89 "assets": {
90 "binding": "ASSETS",
91 "directory": "dist/client",
92 "html_handling": "none"
93 },
94 // Environment variables (text/JSON)
95 "vars": {
96 // Repo DO idle cleanup threshold (minutes)
97 "REPO_DO_IDLE_MINUTES": "30",
98 // Logging level: debug|info|warn|error
99 "LOG_LEVEL": "info",
100 // tessera OIDC issuer (production). Override via .dev.vars for local dev.
101 // Client id and secret are runtime concerns and live in .dev.vars / `wrangler secret put`.
102 "TESSERA_OIDC_ISSUER": "https://auth.limic.dev"
103 }
104}