-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
93 lines (90 loc) · 2.85 KB
/
Copy pathwrangler.jsonc
File metadata and controls
93 lines (90 loc) · 2.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// NOTE: The worker names, R2 bucket names, and domain below are specific to the
// upstream GoodWebTools deployment. To self-host, rename them to your own (and
// create your own R2 buckets — see DEPLOYMENT.md "Deploy your own instance").
{
// Deploys the static Astro build (dist/) plus a small Worker that streams ML
// model files from R2 at /models/*. Build first (`npm run build`), then
// `npx wrangler deploy`. The R2 bucket must exist:
// npx wrangler r2 bucket create goodwebtools-models
"$schema": "node_modules/wrangler/config-schema.json",
"name": "goodwebtools",
"compatibility_date": "2026-07-13",
"main": "worker/index.js",
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"not_found_handling": "404-page"
},
"r2_buckets": [
{ "binding": "MODELS", "bucket_name": "goodwebtools-models" }
],
// WebRTC signaling rendezvous for the P2P tools (file transfer, video call).
// SQLite-backed Durable Object = free tier. Relays only the tiny SDP/ICE
// handshake; media/files travel peer-to-peer.
"durable_objects": {
"bindings": [
{ "name": "SIGNAL", "class_name": "SignalRoom" }
]
},
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["SignalRoom"] }
],
// Workers observability, declared here so deploys stay in sync with the
// dashboard-configured settings (otherwise each deploy can reset them).
// Named environments don't inherit this, so it's repeated under `staging`.
"observability": {
"enabled": false,
"head_sampling_rate": 1,
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"persist": true,
"invocation_logs": true
},
"traces": {
"enabled": false,
"persist": true,
"head_sampling_rate": 1
}
},
// Staging environment (deployed from the `develop` branch). Bindings and
// `assets` are NOT inherited by named environments, so they're repeated here.
// Deploy with: npx wrangler deploy --env staging
// See DEPLOYMENT.md.
"env": {
"staging": {
"name": "goodwebtools-staging",
"assets": {
"directory": "./dist",
"binding": "ASSETS",
"not_found_handling": "404-page"
},
"r2_buckets": [
{ "binding": "MODELS", "bucket_name": "goodwebtools-models-staging" }
],
"durable_objects": {
"bindings": [
{ "name": "SIGNAL", "class_name": "SignalRoom" }
]
},
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["SignalRoom"] }
],
"observability": {
"enabled": false,
"head_sampling_rate": 1,
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"persist": true,
"invocation_logs": true
},
"traces": {
"enabled": false,
"persist": true,
"head_sampling_rate": 1
}
}
}
}
}