Repository navigation
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
50 lines (50 loc) · 1.67 KB
/
Copy pathwrangler.jsonc
File metadata and controls
50 lines (50 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "dhikr-hub",
"main": "worker/index.ts",
// The tests run on the workerd bundled with @cloudflare/vitest-plugin (1.20261006 for
// 1.3.7), which rejects later dates; raise this together with that package.
"compatibility_date": "2026-10-01",
"assets": {
"directory": "./site/public/",
"binding": "ASSETS",
// Static assets are served before the Worker unless listed here; the invite
// page needs the Worker to inject the room's link-preview tags.
"run_worker_first": ["/live/", "/live/index.html"]
},
"durable_objects": {
"bindings": [
{ "name": "LIVE_ROOM", "class_name": "LiveRoom" },
{ "name": "IDENTITY", "class_name": "IdentityRegistry" }
]
},
// Append-only: deployed tags must never be edited or removed.
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["LiveRoom", "IdentityRegistry"] }
],
// Previews do not inherit bindings. Each Preview gets its own empty Durable Object
// namespaces, so rooms and identities never touch production.
"previews": {
"durable_objects": {
"bindings": [
{ "name": "LIVE_ROOM", "class_name": "LiveRoom" },
{ "name": "IDENTITY", "class_name": "IdentityRegistry" }
]
}
},
// A deploy applies this block over the dashboard's Observability settings, so
// change them here. issue_detection is left out: Wrangler 4.152 rejects the field.
"observability": {
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true,
"persist": true
},
"traces": {
"enabled": false,
"head_sampling_rate": 1,
"persist": true
}
}
}