-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
234 lines (234 loc) · 6.42 KB
/
Copy pathwrangler.jsonc
File metadata and controls
234 lines (234 loc) · 6.42 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "vibesdk-production",
"main": "worker/index.ts",
// Facets (durable-object-facets) require a recent compat date — bumped
// from 2025-08-10 to enable `ctx.facets.get()` for space-generated
// apps' env.DB binding.
"compatibility_date": "2026-05-23",
"compatibility_flags": ["nodejs_compat"],
// Preserve dashboard-managed vars on deploy so dashboard-only settings
// (e.g. ENABLE_ARTIFACTS and ENABLE_READ_REPLICAS) are not deleted by `wrangler deploy`.
"keep_vars": true,
// Treat imported `.md` files (e.g. Think agent SKILL.md) as Text modules so
// `wrangler deploy` can bundle markdown imports. Unlike `.txt`, `.md` has no
// built-in esbuild loader. The `?raw` glob is required because wrangler's
// module-collection `onResolve` filter matches the raw import specifier
// (which ends in `?raw`) before the query string is stripped.
"rules": [
{ "type": "Text", "globs": ["**/*.md", "**/*.md?raw"], "fallthrough": true }
],
"version_metadata": {
"binding": "CF_VERSION_METADATA"
},
"assets": {
"directory": "dist/client",
"not_found_handling": "single-page-application",
// "run_worker_first": ["!/src/*", "!/api/docs/*"],
"run_worker_first": true,
"binding": "ASSETS"
},
"observability": {
"enabled": true,
"head_sampling_rate": 1,
"logs": {
"enabled": true,
"invocation_logs": true
},
"traces": {
"enabled": true
}
},
"unsafe": {
"bindings": [
{
"name": "API_RATE_LIMITER",
"type": "ratelimit",
"namespace_id": "2101",
"simple": { "limit": 10000, "period": 60 }
},
{
"name": "AUTH_RATE_LIMITER",
"type": "ratelimit",
"namespace_id": "2102",
"simple": { "limit": 1000, "period": 60 }
}
]
},
/**
* Bindings
* Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including
* databases, object storage, AI inference, real-time communication and more.
* https://developers.cloudflare.com/workers/runtime-apis/bindings/
*/
"ai": {
"binding": "AI",
"remote": true
},
"browser": {
"binding": "BROWSER",
"remote": true
},
"dispatch_namespaces": [
{
"binding": "DISPATCHER",
"namespace": "vibesdk-default-namespace",
"remote": true
}
],
"artifacts": [
{
"binding": "ARTIFACTS",
"namespace": "vibesdk-production"
}
],
"containers": [
{
"class_name": "UserAppSandboxService",
"image": "./SandboxDockerfile",
// "image": "registry.cloudflare.com/vibesdk-production-userappsandboxservice:cfe197fc",
// Altering max_instances value will have no effect. Please use the MAX_SANDBOX_INSTANCES var instead.
"max_instances": 1400,
// ATTENTION: Altering instance_type value will have no effect. Please use the SANDBOX_INSTANCE_TYPE var instead.
"instance_type": {
"vcpu": 4,
"memory_mib": 8192,
"disk_mb": 10240
},
"rollout_step_percentage": 100,
"ssh": {
"enabled": true
}
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "vibesdk-db",
"database_id": "c4721a2b-b96a-428a-8b2a-b3d255b307e9",
"migrations_dir": "migrations"
}
],
"durable_objects": {
"bindings": [
{
"class_name": "CodeGeneratorAgent",
"name": "CodeGenObject"
},
{
"class_name": "UserAppSandboxService",
"name": "Sandbox"
},
{
"class_name": "DORateLimitStore",
"name": "DORateLimitStore"
},
{
"class_name": "UserSecretsStore",
"name": "UserSecretsStore"
},
{
"class_name": "ThinkAgent",
"name": "THINK_DO"
},
{
"class_name": "SpaceDO",
"name": "SPACE_DO"
}
]
},
"worker_loaders": [
{
"binding": "LOADER"
}
],
"r2_buckets": [
{
"binding": "TEMPLATES_BUCKET",
"bucket_name": "vibesdk-templates"
}
],
"kv_namespaces": [
{
"binding": "VibecoderStore",
"id": "f066f3c2e4824981b48e8586c04db9c1"
}
],
// "placement": {
// "mode": "smart"
// },
"migrations": [
{
"new_sqlite_classes": [
"CodeGeneratorAgent",
"UserAppSandboxService"
],
"tag": "v1"
},
{
"new_sqlite_classes": [
"DORateLimitStore"
],
"tag": "v2"
},
{
"new_sqlite_classes": [
"UserSecretsStore"
],
"tag": "v3"
},
{
"new_sqlite_classes": [
"SpaceDO"
],
"tag": "v5"
},
{
"new_sqlite_classes": [
"ThinkAgent"
],
"tag": "v6"
}
],
"routes": [
{
"pattern": "build.cloudflare.dev",
"custom_domain": true
},
{
"pattern": "*build-preview.cloudflare.dev/*",
"custom_domain": false,
"zone_id": "db01fac4261b2604aacad8410443a3e2"
}
],
"vars": {
"TEMPLATES_REPOSITORY": "https://github.com/cloudflare/vibesdk-templates",
"DISPATCH_NAMESPACE": "vibesdk-default-namespace",
"CLOUDFLARE_AI_GATEWAY": "vibesdk-gateway",
"PLATFORM_CAPABILITIES": {
"features": {
"app": {
"enabled": true
},
"presentation": {
"enabled": false
},
"general": {
"enabled": false
}
},
"version": "1.0.0"
},
"CUSTOM_DOMAIN": "",
"MAX_SANDBOX_INSTANCES": "10",
"SANDBOX_INSTANCE_TYPE": "standard-3",
"DEV_BROWSER_SIDECAR_URL": "http://127.0.0.1:9223",
"DEV_BROWSER_PREVIEW_ORIGIN": "http://localhost:5173"
},
"workers_dev": false,
"preview_urls": false
}