forked from cloudflare/vibesdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
155 lines (155 loc) · 4.2 KB
/
wrangler.jsonc
File metadata and controls
155 lines (155 loc) · 4.2 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
/**
* 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",
"compatibility_date": "2025-08-10",
"compatibility_flags": ["nodejs_compat"],
"version_metadata": {
"binding": "CF_VERSION_METADATA"
},
"assets": {
"directory": "dist",
"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,
},
"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
},
"dispatch_namespaces": [
{
"binding": "DISPATCHER",
"namespace": "vibesdk-default-namespace",
"remote": true
}
],
"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
}
],
"d1_databases": [
{
"binding": "DB",
"database_name": "vibesdk-db",
"database_id": "c4721a2b-b96a-428a-8b2a-b3d255b307e9",
"migrations_dir": "migrations",
"remote": true
}
],
"durable_objects": {
"bindings": [
{
"class_name": "CodeGeneratorAgent",
"name": "CodeGenObject"
},
{
"class_name": "UserAppSandboxService",
"name": "Sandbox"
},
{
"class_name": "DORateLimitStore",
"name": "DORateLimitStore"
}
]
},
"r2_buckets": [
{
"binding": "TEMPLATES_BUCKET",
"bucket_name": "vibesdk-templates",
"remote": true
}
],
"kv_namespaces": [
{
"binding": "VibecoderStore",
"id": "f066f3c2e4824981b48e8586c04db9c1",
"remote": true
}
],
// "placement": {
// "mode": "smart"
// },
"migrations": [
{
"new_sqlite_classes": [
"CodeGeneratorAgent",
"UserAppSandboxService"
],
"tag": "v1"
},
{
"new_sqlite_classes": [
"DORateLimitStore"
],
"tag": "v2"
}
],
"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",
"ALLOWED_EMAIL": "",
"DISPATCH_NAMESPACE": "vibesdk-default-namespace",
"ENABLE_READ_REPLICAS": "true",
"CLOUDFLARE_AI_GATEWAY": "vibesdk-gateway",
"CUSTOM_DOMAIN": "",
"MAX_SANDBOX_INSTANCES": "10",
"SANDBOX_INSTANCE_TYPE": "standard-3",
"USE_CLOUDFLARE_IMAGES": ""
},
"workers_dev": false,
"preview_urls": false
}