wrangler 0.0.0-e7c06d78 → 0.0.0-e7c7235fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -37
- package/config-schema.json +616 -351
- package/package.json +36 -49
- package/templates/init-tests/test-vitest-new-worker.ts +2 -2
- package/templates/middleware/middleware-mock-analytics-engine.d.ts +3 -0
- package/templates/middleware/middleware-mock-analytics-engine.ts +30 -0
- package/templates/middleware/middleware-patch-console-prefix.d.ts +3 -0
- package/templates/middleware/middleware-patch-console-prefix.ts +21 -0
- package/templates/middleware/middleware-scheduled.ts +15 -1
- package/templates/middleware/middleware-serve-static-assets.ts +2 -2
- package/templates/startDevWorker/ProxyWorker.ts +26 -24
- package/wrangler-dist/InspectorProxyWorker.js.map +1 -1
- package/wrangler-dist/ProxyWorker.js +25 -24
- package/wrangler-dist/ProxyWorker.js.map +1 -1
- package/wrangler-dist/cli.d.ts +600 -282
- package/wrangler-dist/cli.js +141748 -181396
- package/wrangler-dist/wasm-sync.wasm +0 -0
package/config-schema.json
CHANGED
|
@@ -2,10 +2,56 @@
|
|
|
2
2
|
"$ref": "#/definitions/RawConfig",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"Assets": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"binding": {
|
|
9
|
+
"description": "Name of `env` binding property in the User Worker.",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"directory": {
|
|
13
|
+
"description": "Absolute path to assets directory",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"experimental_serve_directly": {
|
|
17
|
+
"description": "If true, then respond to requests that match an asset with that asset directly. If false, route every request to the User Worker, whether or not it matches an asset.",
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"html_handling": {
|
|
21
|
+
"description": "How to handle HTML requests.",
|
|
22
|
+
"enum": [
|
|
23
|
+
"auto-trailing-slash",
|
|
24
|
+
"force-trailing-slash",
|
|
25
|
+
"drop-trailing-slash",
|
|
26
|
+
"none"
|
|
27
|
+
],
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"not_found_handling": {
|
|
31
|
+
"description": "How to handle requests that do not match an asset.",
|
|
32
|
+
"enum": [
|
|
33
|
+
"single-page-application",
|
|
34
|
+
"404-page",
|
|
35
|
+
"none"
|
|
36
|
+
],
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"type": "object"
|
|
41
|
+
},
|
|
5
42
|
"CloudchamberConfig": {
|
|
6
43
|
"additionalProperties": false,
|
|
7
44
|
"description": "Configuration in wrangler for Cloudchamber",
|
|
8
45
|
"properties": {
|
|
46
|
+
"image": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"ipv4": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
},
|
|
52
|
+
"location": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
9
55
|
"memory": {
|
|
10
56
|
"type": "string"
|
|
11
57
|
},
|
|
@@ -29,6 +75,107 @@
|
|
|
29
75
|
],
|
|
30
76
|
"type": "string"
|
|
31
77
|
},
|
|
78
|
+
"ContainerApp": {
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"description": "Configuration for a container application",
|
|
81
|
+
"properties": {
|
|
82
|
+
"configuration": {
|
|
83
|
+
"additionalProperties": false,
|
|
84
|
+
"properties": {
|
|
85
|
+
"image": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"labels": {
|
|
89
|
+
"items": {
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"properties": {
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"value": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"name",
|
|
101
|
+
"value"
|
|
102
|
+
],
|
|
103
|
+
"type": "object"
|
|
104
|
+
},
|
|
105
|
+
"type": "array"
|
|
106
|
+
},
|
|
107
|
+
"secrets": {
|
|
108
|
+
"items": {
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {
|
|
111
|
+
"name": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
},
|
|
114
|
+
"secret": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"type": {
|
|
118
|
+
"const": "env",
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"name",
|
|
124
|
+
"type",
|
|
125
|
+
"secret"
|
|
126
|
+
],
|
|
127
|
+
"type": "object"
|
|
128
|
+
},
|
|
129
|
+
"type": "array"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"image"
|
|
134
|
+
],
|
|
135
|
+
"type": "object"
|
|
136
|
+
},
|
|
137
|
+
"constraints": {
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"properties": {
|
|
140
|
+
"cities": {
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"type": "array"
|
|
145
|
+
},
|
|
146
|
+
"regions": {
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"type": "array"
|
|
151
|
+
},
|
|
152
|
+
"tier": {
|
|
153
|
+
"type": "number"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"type": "object"
|
|
157
|
+
},
|
|
158
|
+
"instances": {
|
|
159
|
+
"type": "number"
|
|
160
|
+
},
|
|
161
|
+
"name": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"scheduling_policy": {
|
|
165
|
+
"enum": [
|
|
166
|
+
"regional",
|
|
167
|
+
"moon"
|
|
168
|
+
],
|
|
169
|
+
"type": "string"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": [
|
|
173
|
+
"name",
|
|
174
|
+
"instances",
|
|
175
|
+
"configuration"
|
|
176
|
+
],
|
|
177
|
+
"type": "object"
|
|
178
|
+
},
|
|
32
179
|
"CustomDomainRoute": {
|
|
33
180
|
"additionalProperties": false,
|
|
34
181
|
"properties": {
|
|
@@ -51,7 +198,7 @@
|
|
|
51
198
|
"properties": {
|
|
52
199
|
"dir": {
|
|
53
200
|
"deprecated": true,
|
|
54
|
-
"description": "The directory you wish to upload your Worker from, relative to the
|
|
201
|
+
"description": "The directory you wish to upload your Worker from, relative to the Wrangler configuration file.\n\nDefaults to the directory containing the Wrangler configuration file.",
|
|
55
202
|
"type": "string"
|
|
56
203
|
},
|
|
57
204
|
"format": {
|
|
@@ -128,6 +275,61 @@
|
|
|
128
275
|
},
|
|
129
276
|
"type": "array"
|
|
130
277
|
},
|
|
278
|
+
"DurableObjectMigration": {
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"description": "Configuration in wrangler for Durable Object Migrations",
|
|
281
|
+
"properties": {
|
|
282
|
+
"deleted_classes": {
|
|
283
|
+
"description": "The Durable Objects being removed.",
|
|
284
|
+
"items": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"type": "array"
|
|
288
|
+
},
|
|
289
|
+
"new_classes": {
|
|
290
|
+
"description": "The new Durable Objects being defined.",
|
|
291
|
+
"items": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"type": "array"
|
|
295
|
+
},
|
|
296
|
+
"new_sqlite_classes": {
|
|
297
|
+
"description": "The new SQLite Durable Objects being defined.",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
301
|
+
"type": "array"
|
|
302
|
+
},
|
|
303
|
+
"renamed_classes": {
|
|
304
|
+
"description": "The Durable Objects being renamed.",
|
|
305
|
+
"items": {
|
|
306
|
+
"additionalProperties": false,
|
|
307
|
+
"properties": {
|
|
308
|
+
"from": {
|
|
309
|
+
"type": "string"
|
|
310
|
+
},
|
|
311
|
+
"to": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"from",
|
|
317
|
+
"to"
|
|
318
|
+
],
|
|
319
|
+
"type": "object"
|
|
320
|
+
},
|
|
321
|
+
"type": "array"
|
|
322
|
+
},
|
|
323
|
+
"tag": {
|
|
324
|
+
"description": "A unique identifier for this migration.",
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"required": [
|
|
329
|
+
"tag"
|
|
330
|
+
],
|
|
331
|
+
"type": "object"
|
|
332
|
+
},
|
|
131
333
|
"Environment": {
|
|
132
334
|
"additionalProperties": false,
|
|
133
335
|
"description": "The `Environment` interface declares all the configuration fields that can be specified for an environment.\n\nThis could be the top-level default environment, or a specific named environment.",
|
|
@@ -138,7 +340,7 @@
|
|
|
138
340
|
},
|
|
139
341
|
"ai": {
|
|
140
342
|
"additionalProperties": false,
|
|
141
|
-
"default":
|
|
343
|
+
"default": {},
|
|
142
344
|
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
143
345
|
"properties": {
|
|
144
346
|
"binding": {
|
|
@@ -154,7 +356,7 @@
|
|
|
154
356
|
"type": "object"
|
|
155
357
|
},
|
|
156
358
|
"analytics_engine_datasets": {
|
|
157
|
-
"default":
|
|
359
|
+
"default": [],
|
|
158
360
|
"description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
159
361
|
"items": {
|
|
160
362
|
"additionalProperties": false,
|
|
@@ -175,13 +377,17 @@
|
|
|
175
377
|
},
|
|
176
378
|
"type": "array"
|
|
177
379
|
},
|
|
380
|
+
"assets": {
|
|
381
|
+
"$ref": "#/definitions/Assets",
|
|
382
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
383
|
+
},
|
|
178
384
|
"base_dir": {
|
|
179
385
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
180
386
|
"type": "string"
|
|
181
387
|
},
|
|
182
388
|
"browser": {
|
|
183
389
|
"additionalProperties": false,
|
|
184
|
-
"default":
|
|
390
|
+
"default": {},
|
|
185
391
|
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
186
392
|
"properties": {
|
|
187
393
|
"binding": {
|
|
@@ -232,7 +438,7 @@
|
|
|
232
438
|
},
|
|
233
439
|
"cloudchamber": {
|
|
234
440
|
"$ref": "#/definitions/CloudchamberConfig",
|
|
235
|
-
"default":
|
|
441
|
+
"default": {},
|
|
236
442
|
"description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
|
|
237
443
|
},
|
|
238
444
|
"compatibility_date": {
|
|
@@ -240,38 +446,33 @@
|
|
|
240
446
|
"type": "string"
|
|
241
447
|
},
|
|
242
448
|
"compatibility_flags": {
|
|
243
|
-
"default":
|
|
244
|
-
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with
|
|
449
|
+
"default": [],
|
|
450
|
+
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_date.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-flags",
|
|
245
451
|
"items": {
|
|
246
452
|
"type": "string"
|
|
247
453
|
},
|
|
248
454
|
"type": "array"
|
|
249
455
|
},
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"description": "
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
"
|
|
257
|
-
|
|
258
|
-
"
|
|
456
|
+
"containers": {
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"description": "Container related configuration",
|
|
459
|
+
"properties": {
|
|
460
|
+
"app": {
|
|
461
|
+
"default": {},
|
|
462
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
463
|
+
"items": {
|
|
464
|
+
"$ref": "#/definitions/ContainerApp"
|
|
259
465
|
},
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
"type": "string"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
"required": [
|
|
266
|
-
"binding",
|
|
267
|
-
"project_id"
|
|
268
|
-
],
|
|
269
|
-
"type": "object"
|
|
466
|
+
"type": "array"
|
|
467
|
+
}
|
|
270
468
|
},
|
|
271
|
-
"
|
|
469
|
+
"required": [
|
|
470
|
+
"app"
|
|
471
|
+
],
|
|
472
|
+
"type": "object"
|
|
272
473
|
},
|
|
273
474
|
"d1_databases": {
|
|
274
|
-
"default":
|
|
475
|
+
"default": [],
|
|
275
476
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
276
477
|
"items": {
|
|
277
478
|
"additionalProperties": false,
|
|
@@ -306,9 +507,7 @@
|
|
|
306
507
|
}
|
|
307
508
|
},
|
|
308
509
|
"required": [
|
|
309
|
-
"binding"
|
|
310
|
-
"database_name",
|
|
311
|
-
"database_id"
|
|
510
|
+
"binding"
|
|
312
511
|
],
|
|
313
512
|
"type": "object"
|
|
314
513
|
},
|
|
@@ -318,12 +517,12 @@
|
|
|
318
517
|
"additionalProperties": {
|
|
319
518
|
"type": "string"
|
|
320
519
|
},
|
|
321
|
-
"default":
|
|
520
|
+
"default": {},
|
|
322
521
|
"description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
323
522
|
"type": "object"
|
|
324
523
|
},
|
|
325
524
|
"dispatch_namespaces": {
|
|
326
|
-
"default":
|
|
525
|
+
"default": [],
|
|
327
526
|
"description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
328
527
|
"items": {
|
|
329
528
|
"additionalProperties": false,
|
|
@@ -351,7 +550,9 @@
|
|
|
351
550
|
},
|
|
352
551
|
"durable_objects": {
|
|
353
552
|
"additionalProperties": false,
|
|
354
|
-
"default":
|
|
553
|
+
"default": {
|
|
554
|
+
"bindings": []
|
|
555
|
+
},
|
|
355
556
|
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
356
557
|
"properties": {
|
|
357
558
|
"bindings": {
|
|
@@ -372,7 +573,7 @@
|
|
|
372
573
|
"type": "boolean"
|
|
373
574
|
},
|
|
374
575
|
"hyperdrive": {
|
|
375
|
-
"default":
|
|
576
|
+
"default": [],
|
|
376
577
|
"description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
377
578
|
"items": {
|
|
378
579
|
"additionalProperties": false,
|
|
@@ -399,17 +600,17 @@
|
|
|
399
600
|
"type": "array"
|
|
400
601
|
},
|
|
401
602
|
"jsx_factory": {
|
|
402
|
-
"default": "
|
|
603
|
+
"default": "React.createElement",
|
|
403
604
|
"description": "The function to use to replace jsx syntax.",
|
|
404
605
|
"type": "string"
|
|
405
606
|
},
|
|
406
607
|
"jsx_fragment": {
|
|
407
|
-
"default": "
|
|
608
|
+
"default": "React.Fragment",
|
|
408
609
|
"description": "The function to use to replace jsx fragment syntax.",
|
|
409
610
|
"type": "string"
|
|
410
611
|
},
|
|
411
612
|
"kv_namespaces": {
|
|
412
|
-
"default":
|
|
613
|
+
"default": [],
|
|
413
614
|
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
414
615
|
"items": {
|
|
415
616
|
"additionalProperties": false,
|
|
@@ -428,8 +629,7 @@
|
|
|
428
629
|
}
|
|
429
630
|
},
|
|
430
631
|
"required": [
|
|
431
|
-
"binding"
|
|
432
|
-
"id"
|
|
632
|
+
"binding"
|
|
433
633
|
],
|
|
434
634
|
"type": "object"
|
|
435
635
|
},
|
|
@@ -441,7 +641,9 @@
|
|
|
441
641
|
},
|
|
442
642
|
"logfwdr": {
|
|
443
643
|
"additionalProperties": false,
|
|
444
|
-
"default":
|
|
644
|
+
"default": {
|
|
645
|
+
"bindings": []
|
|
646
|
+
},
|
|
445
647
|
"description": "List of bindings that you will send to logfwdr",
|
|
446
648
|
"properties": {
|
|
447
649
|
"bindings": {
|
|
@@ -483,51 +685,7 @@
|
|
|
483
685
|
"default": [],
|
|
484
686
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
|
485
687
|
"items": {
|
|
486
|
-
"
|
|
487
|
-
"properties": {
|
|
488
|
-
"deleted_classes": {
|
|
489
|
-
"description": "The Durable Objects being removed.",
|
|
490
|
-
"items": {
|
|
491
|
-
"type": "string"
|
|
492
|
-
},
|
|
493
|
-
"type": "array"
|
|
494
|
-
},
|
|
495
|
-
"new_classes": {
|
|
496
|
-
"description": "The new Durable Objects being defined.",
|
|
497
|
-
"items": {
|
|
498
|
-
"type": "string"
|
|
499
|
-
},
|
|
500
|
-
"type": "array"
|
|
501
|
-
},
|
|
502
|
-
"renamed_classes": {
|
|
503
|
-
"description": "The Durable Objects being renamed.",
|
|
504
|
-
"items": {
|
|
505
|
-
"additionalProperties": false,
|
|
506
|
-
"properties": {
|
|
507
|
-
"from": {
|
|
508
|
-
"type": "string"
|
|
509
|
-
},
|
|
510
|
-
"to": {
|
|
511
|
-
"type": "string"
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"required": [
|
|
515
|
-
"from",
|
|
516
|
-
"to"
|
|
517
|
-
],
|
|
518
|
-
"type": "object"
|
|
519
|
-
},
|
|
520
|
-
"type": "array"
|
|
521
|
-
},
|
|
522
|
-
"tag": {
|
|
523
|
-
"description": "A unique identifier for this migration.",
|
|
524
|
-
"type": "string"
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
"required": [
|
|
528
|
-
"tag"
|
|
529
|
-
],
|
|
530
|
-
"type": "object"
|
|
688
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
|
531
689
|
},
|
|
532
690
|
"type": "array"
|
|
533
691
|
},
|
|
@@ -536,7 +694,7 @@
|
|
|
536
694
|
"type": "boolean"
|
|
537
695
|
},
|
|
538
696
|
"mtls_certificates": {
|
|
539
|
-
"default":
|
|
697
|
+
"default": [],
|
|
540
698
|
"description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
541
699
|
"items": {
|
|
542
700
|
"additionalProperties": false,
|
|
@@ -570,10 +728,40 @@
|
|
|
570
728
|
"description": "Add polyfills for node builtin modules and globals",
|
|
571
729
|
"type": "boolean"
|
|
572
730
|
},
|
|
731
|
+
"observability": {
|
|
732
|
+
"$ref": "#/definitions/Observability",
|
|
733
|
+
"description": "Specify the observability behavior of the Worker."
|
|
734
|
+
},
|
|
735
|
+
"pipelines": {
|
|
736
|
+
"default": [],
|
|
737
|
+
"description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
738
|
+
"items": {
|
|
739
|
+
"additionalProperties": false,
|
|
740
|
+
"properties": {
|
|
741
|
+
"binding": {
|
|
742
|
+
"description": "The binding name used to refer to the bound service.",
|
|
743
|
+
"type": "string"
|
|
744
|
+
},
|
|
745
|
+
"pipeline": {
|
|
746
|
+
"description": "Name of the Pipeline to bind",
|
|
747
|
+
"type": "string"
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"required": [
|
|
751
|
+
"binding",
|
|
752
|
+
"pipeline"
|
|
753
|
+
],
|
|
754
|
+
"type": "object"
|
|
755
|
+
},
|
|
756
|
+
"type": "array"
|
|
757
|
+
},
|
|
573
758
|
"placement": {
|
|
574
759
|
"additionalProperties": false,
|
|
575
760
|
"description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
|
|
576
761
|
"properties": {
|
|
762
|
+
"hint": {
|
|
763
|
+
"type": "string"
|
|
764
|
+
},
|
|
577
765
|
"mode": {
|
|
578
766
|
"enum": [
|
|
579
767
|
"off",
|
|
@@ -591,9 +779,17 @@
|
|
|
591
779
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
592
780
|
"type": "boolean"
|
|
593
781
|
},
|
|
782
|
+
"preview_urls": {
|
|
783
|
+
"default": true,
|
|
784
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
785
|
+
"type": "boolean"
|
|
786
|
+
},
|
|
594
787
|
"queues": {
|
|
595
788
|
"additionalProperties": false,
|
|
596
|
-
"default":
|
|
789
|
+
"default": {
|
|
790
|
+
"consumers": [],
|
|
791
|
+
"producers": []
|
|
792
|
+
},
|
|
597
793
|
"description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
598
794
|
"properties": {
|
|
599
795
|
"consumers": {
|
|
@@ -678,7 +874,7 @@
|
|
|
678
874
|
"type": "object"
|
|
679
875
|
},
|
|
680
876
|
"r2_buckets": {
|
|
681
|
-
"default":
|
|
877
|
+
"default": [],
|
|
682
878
|
"description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
683
879
|
"items": {
|
|
684
880
|
"additionalProperties": false,
|
|
@@ -701,8 +897,7 @@
|
|
|
701
897
|
}
|
|
702
898
|
},
|
|
703
899
|
"required": [
|
|
704
|
-
"binding"
|
|
705
|
-
"bucket_name"
|
|
900
|
+
"binding"
|
|
706
901
|
],
|
|
707
902
|
"type": "object"
|
|
708
903
|
},
|
|
@@ -727,7 +922,7 @@
|
|
|
727
922
|
"type": "array"
|
|
728
923
|
},
|
|
729
924
|
"send_email": {
|
|
730
|
-
"default":
|
|
925
|
+
"default": [],
|
|
731
926
|
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
732
927
|
"items": {
|
|
733
928
|
"additionalProperties": false,
|
|
@@ -756,7 +951,7 @@
|
|
|
756
951
|
"type": "array"
|
|
757
952
|
},
|
|
758
953
|
"services": {
|
|
759
|
-
"default":
|
|
954
|
+
"default": [],
|
|
760
955
|
"description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
761
956
|
"items": {
|
|
762
957
|
"additionalProperties": false,
|
|
@@ -787,7 +982,7 @@
|
|
|
787
982
|
"type": "array"
|
|
788
983
|
},
|
|
789
984
|
"tail_consumers": {
|
|
790
|
-
"default":
|
|
985
|
+
"default": [],
|
|
791
986
|
"description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
792
987
|
"items": {
|
|
793
988
|
"$ref": "#/definitions/TailConsumer"
|
|
@@ -796,7 +991,9 @@
|
|
|
796
991
|
},
|
|
797
992
|
"triggers": {
|
|
798
993
|
"additionalProperties": false,
|
|
799
|
-
"default":
|
|
994
|
+
"default": {
|
|
995
|
+
"crons": []
|
|
996
|
+
},
|
|
800
997
|
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
|
801
998
|
"properties": {
|
|
802
999
|
"crons": {
|
|
@@ -817,7 +1014,7 @@
|
|
|
817
1014
|
},
|
|
818
1015
|
"unsafe": {
|
|
819
1016
|
"additionalProperties": false,
|
|
820
|
-
"default":
|
|
1017
|
+
"default": {},
|
|
821
1018
|
"description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
822
1019
|
"properties": {
|
|
823
1020
|
"bindings": {
|
|
@@ -907,12 +1104,12 @@
|
|
|
907
1104
|
}
|
|
908
1105
|
]
|
|
909
1106
|
},
|
|
910
|
-
"default":
|
|
1107
|
+
"default": {},
|
|
911
1108
|
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
912
1109
|
"type": "object"
|
|
913
1110
|
},
|
|
914
1111
|
"vectorize": {
|
|
915
|
-
"default":
|
|
1112
|
+
"default": [],
|
|
916
1113
|
"description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
917
1114
|
"items": {
|
|
918
1115
|
"additionalProperties": false,
|
|
@@ -948,10 +1145,18 @@
|
|
|
948
1145
|
"type": "object"
|
|
949
1146
|
},
|
|
950
1147
|
"workers_dev": {
|
|
951
|
-
"default":
|
|
952
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker
|
|
1148
|
+
"default": true,
|
|
1149
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
|
|
953
1150
|
"type": "boolean"
|
|
954
1151
|
},
|
|
1152
|
+
"workflows": {
|
|
1153
|
+
"default": [],
|
|
1154
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1155
|
+
"items": {
|
|
1156
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
1157
|
+
},
|
|
1158
|
+
"type": "array"
|
|
1159
|
+
},
|
|
955
1160
|
"zone_id": {
|
|
956
1161
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
957
1162
|
"type": "string"
|
|
@@ -962,7 +1167,7 @@
|
|
|
962
1167
|
"build",
|
|
963
1168
|
"cloudchamber",
|
|
964
1169
|
"compatibility_flags",
|
|
965
|
-
"
|
|
1170
|
+
"containers",
|
|
966
1171
|
"d1_databases",
|
|
967
1172
|
"define",
|
|
968
1173
|
"dispatch_namespaces",
|
|
@@ -974,6 +1179,7 @@
|
|
|
974
1179
|
"logfwdr",
|
|
975
1180
|
"migrations",
|
|
976
1181
|
"mtls_certificates",
|
|
1182
|
+
"pipelines",
|
|
977
1183
|
"queues",
|
|
978
1184
|
"r2_buckets",
|
|
979
1185
|
"rules",
|
|
@@ -981,7 +1187,8 @@
|
|
|
981
1187
|
"triggers",
|
|
982
1188
|
"unsafe",
|
|
983
1189
|
"vars",
|
|
984
|
-
"vectorize"
|
|
1190
|
+
"vectorize",
|
|
1191
|
+
"workflows"
|
|
985
1192
|
],
|
|
986
1193
|
"type": "object"
|
|
987
1194
|
},
|
|
@@ -1007,6 +1214,37 @@
|
|
|
1007
1214
|
"Literal": {
|
|
1008
1215
|
"$ref": "#/definitions/TypeOf%3CZodUnion%3C%5Bdef-class-1315922706-6501-8772-1315922706-0-54395%2Cdef-class-1315922706-9299-10989-1315922706-0-54395%2Cdef-class-1315922706-12937-13365-1315922706-0-54395%2Cdef-class-1315922706-15083-15273-1315922706-0-54395%5D%3E%3E"
|
|
1009
1216
|
},
|
|
1217
|
+
"Observability": {
|
|
1218
|
+
"additionalProperties": false,
|
|
1219
|
+
"properties": {
|
|
1220
|
+
"enabled": {
|
|
1221
|
+
"description": "If observability is enabled for this Worker",
|
|
1222
|
+
"type": "boolean"
|
|
1223
|
+
},
|
|
1224
|
+
"head_sampling_rate": {
|
|
1225
|
+
"description": "The sampling rate",
|
|
1226
|
+
"type": "number"
|
|
1227
|
+
},
|
|
1228
|
+
"logs": {
|
|
1229
|
+
"additionalProperties": false,
|
|
1230
|
+
"properties": {
|
|
1231
|
+
"enabled": {
|
|
1232
|
+
"type": "boolean"
|
|
1233
|
+
},
|
|
1234
|
+
"head_sampling_rate": {
|
|
1235
|
+
"description": "The sampling rate",
|
|
1236
|
+
"type": "number"
|
|
1237
|
+
},
|
|
1238
|
+
"invocation_logs": {
|
|
1239
|
+
"description": "Set to false to disable invocation logs",
|
|
1240
|
+
"type": "boolean"
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"type": "object"
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
"type": "object"
|
|
1247
|
+
},
|
|
1010
1248
|
"RawConfig": {
|
|
1011
1249
|
"additionalProperties": false,
|
|
1012
1250
|
"properties": {
|
|
@@ -1019,7 +1257,7 @@
|
|
|
1019
1257
|
},
|
|
1020
1258
|
"ai": {
|
|
1021
1259
|
"additionalProperties": false,
|
|
1022
|
-
"default":
|
|
1260
|
+
"default": {},
|
|
1023
1261
|
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1024
1262
|
"properties": {
|
|
1025
1263
|
"binding": {
|
|
@@ -1042,7 +1280,7 @@
|
|
|
1042
1280
|
"type": "object"
|
|
1043
1281
|
},
|
|
1044
1282
|
"analytics_engine_datasets": {
|
|
1045
|
-
"default":
|
|
1283
|
+
"default": [],
|
|
1046
1284
|
"description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1047
1285
|
"items": {
|
|
1048
1286
|
"additionalProperties": false,
|
|
@@ -1064,45 +1302,8 @@
|
|
|
1064
1302
|
"type": "array"
|
|
1065
1303
|
},
|
|
1066
1304
|
"assets": {
|
|
1067
|
-
"
|
|
1068
|
-
|
|
1069
|
-
"additionalProperties": false,
|
|
1070
|
-
"properties": {
|
|
1071
|
-
"browser_TTL": {
|
|
1072
|
-
"type": "number"
|
|
1073
|
-
},
|
|
1074
|
-
"bucket": {
|
|
1075
|
-
"type": "string"
|
|
1076
|
-
},
|
|
1077
|
-
"exclude": {
|
|
1078
|
-
"items": {
|
|
1079
|
-
"type": "string"
|
|
1080
|
-
},
|
|
1081
|
-
"type": "array"
|
|
1082
|
-
},
|
|
1083
|
-
"include": {
|
|
1084
|
-
"items": {
|
|
1085
|
-
"type": "string"
|
|
1086
|
-
},
|
|
1087
|
-
"type": "array"
|
|
1088
|
-
},
|
|
1089
|
-
"serve_single_page_app": {
|
|
1090
|
-
"type": "boolean"
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
"required": [
|
|
1094
|
-
"bucket",
|
|
1095
|
-
"include",
|
|
1096
|
-
"exclude",
|
|
1097
|
-
"serve_single_page_app"
|
|
1098
|
-
],
|
|
1099
|
-
"type": "object"
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
"type": "string"
|
|
1103
|
-
}
|
|
1104
|
-
],
|
|
1105
|
-
"description": "Serve a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields."
|
|
1305
|
+
"$ref": "#/definitions/Assets",
|
|
1306
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
1106
1307
|
},
|
|
1107
1308
|
"base_dir": {
|
|
1108
1309
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
@@ -1110,7 +1311,7 @@
|
|
|
1110
1311
|
},
|
|
1111
1312
|
"browser": {
|
|
1112
1313
|
"additionalProperties": false,
|
|
1113
|
-
"default":
|
|
1314
|
+
"default": {},
|
|
1114
1315
|
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1115
1316
|
"properties": {
|
|
1116
1317
|
"binding": {
|
|
@@ -1161,7 +1362,7 @@
|
|
|
1161
1362
|
},
|
|
1162
1363
|
"cloudchamber": {
|
|
1163
1364
|
"$ref": "#/definitions/CloudchamberConfig",
|
|
1164
|
-
"default":
|
|
1365
|
+
"default": {},
|
|
1165
1366
|
"description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
|
|
1166
1367
|
},
|
|
1167
1368
|
"compatibility_date": {
|
|
@@ -1169,41 +1370,33 @@
|
|
|
1169
1370
|
"type": "string"
|
|
1170
1371
|
},
|
|
1171
1372
|
"compatibility_flags": {
|
|
1172
|
-
"default":
|
|
1173
|
-
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with
|
|
1373
|
+
"default": [],
|
|
1374
|
+
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_date.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-flags",
|
|
1174
1375
|
"items": {
|
|
1175
1376
|
"type": "string"
|
|
1176
1377
|
},
|
|
1177
1378
|
"type": "array"
|
|
1178
1379
|
},
|
|
1179
|
-
"
|
|
1180
|
-
"
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
"binding": {
|
|
1189
|
-
"description": "The binding name used to refer to the project in the Worker.",
|
|
1190
|
-
"type": "string"
|
|
1380
|
+
"containers": {
|
|
1381
|
+
"additionalProperties": false,
|
|
1382
|
+
"description": "Container related configuration",
|
|
1383
|
+
"properties": {
|
|
1384
|
+
"app": {
|
|
1385
|
+
"default": {},
|
|
1386
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1387
|
+
"items": {
|
|
1388
|
+
"$ref": "#/definitions/ContainerApp"
|
|
1191
1389
|
},
|
|
1192
|
-
"
|
|
1193
|
-
|
|
1194
|
-
"type": "string"
|
|
1195
|
-
}
|
|
1196
|
-
},
|
|
1197
|
-
"required": [
|
|
1198
|
-
"binding",
|
|
1199
|
-
"project_id"
|
|
1200
|
-
],
|
|
1201
|
-
"type": "object"
|
|
1390
|
+
"type": "array"
|
|
1391
|
+
}
|
|
1202
1392
|
},
|
|
1203
|
-
"
|
|
1393
|
+
"required": [
|
|
1394
|
+
"app"
|
|
1395
|
+
],
|
|
1396
|
+
"type": "object"
|
|
1204
1397
|
},
|
|
1205
1398
|
"d1_databases": {
|
|
1206
|
-
"default":
|
|
1399
|
+
"default": [],
|
|
1207
1400
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1208
1401
|
"items": {
|
|
1209
1402
|
"additionalProperties": false,
|
|
@@ -1238,9 +1431,7 @@
|
|
|
1238
1431
|
}
|
|
1239
1432
|
},
|
|
1240
1433
|
"required": [
|
|
1241
|
-
"binding"
|
|
1242
|
-
"database_name",
|
|
1243
|
-
"database_id"
|
|
1434
|
+
"binding"
|
|
1244
1435
|
],
|
|
1245
1436
|
"type": "object"
|
|
1246
1437
|
},
|
|
@@ -1257,7 +1448,7 @@
|
|
|
1257
1448
|
"additionalProperties": {
|
|
1258
1449
|
"type": "string"
|
|
1259
1450
|
},
|
|
1260
|
-
"default":
|
|
1451
|
+
"default": {},
|
|
1261
1452
|
"description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1262
1453
|
"type": "object"
|
|
1263
1454
|
},
|
|
@@ -1266,7 +1457,7 @@
|
|
|
1266
1457
|
"description": "Options to configure the development server that your worker will use."
|
|
1267
1458
|
},
|
|
1268
1459
|
"dispatch_namespaces": {
|
|
1269
|
-
"default":
|
|
1460
|
+
"default": [],
|
|
1270
1461
|
"description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1271
1462
|
"items": {
|
|
1272
1463
|
"additionalProperties": false,
|
|
@@ -1294,7 +1485,9 @@
|
|
|
1294
1485
|
},
|
|
1295
1486
|
"durable_objects": {
|
|
1296
1487
|
"additionalProperties": false,
|
|
1297
|
-
"default":
|
|
1488
|
+
"default": {
|
|
1489
|
+
"bindings": []
|
|
1490
|
+
},
|
|
1298
1491
|
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1299
1492
|
"properties": {
|
|
1300
1493
|
"bindings": {
|
|
@@ -1315,7 +1508,7 @@
|
|
|
1315
1508
|
"type": "object"
|
|
1316
1509
|
},
|
|
1317
1510
|
"experimental_services": {
|
|
1318
|
-
"default":
|
|
1511
|
+
"default": [],
|
|
1319
1512
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
|
1320
1513
|
"description": "A list of services that your Worker should be bound to.",
|
|
1321
1514
|
"items": {
|
|
@@ -1352,7 +1545,7 @@
|
|
|
1352
1545
|
"type": "boolean"
|
|
1353
1546
|
},
|
|
1354
1547
|
"hyperdrive": {
|
|
1355
|
-
"default":
|
|
1548
|
+
"default": [],
|
|
1356
1549
|
"description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1357
1550
|
"items": {
|
|
1358
1551
|
"additionalProperties": false,
|
|
@@ -1379,18 +1572,18 @@
|
|
|
1379
1572
|
"type": "array"
|
|
1380
1573
|
},
|
|
1381
1574
|
"jsx_factory": {
|
|
1382
|
-
"default": "
|
|
1575
|
+
"default": "React.createElement",
|
|
1383
1576
|
"description": "The function to use to replace jsx syntax.",
|
|
1384
1577
|
"type": "string"
|
|
1385
1578
|
},
|
|
1386
1579
|
"jsx_fragment": {
|
|
1387
|
-
"default": "
|
|
1580
|
+
"default": "React.Fragment",
|
|
1388
1581
|
"description": "The function to use to replace jsx fragment syntax.",
|
|
1389
1582
|
"type": "string"
|
|
1390
1583
|
},
|
|
1391
1584
|
"keep_vars": {
|
|
1392
1585
|
"default": false,
|
|
1393
|
-
"description": "By default,
|
|
1586
|
+
"description": "By default, the Wrangler configuration file is the source of truth for your environment configuration, like a terraform file.\n\nIf you change your vars in the dashboard, wrangler *will* override/delete them on its next deploy.\n\nIf you want to keep your dashboard vars when wrangler deploys, set this field to true.",
|
|
1394
1587
|
"type": "boolean"
|
|
1395
1588
|
},
|
|
1396
1589
|
"kv-namespaces": {
|
|
@@ -1399,7 +1592,7 @@
|
|
|
1399
1592
|
"type": "string"
|
|
1400
1593
|
},
|
|
1401
1594
|
"kv_namespaces": {
|
|
1402
|
-
"default":
|
|
1595
|
+
"default": [],
|
|
1403
1596
|
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1404
1597
|
"items": {
|
|
1405
1598
|
"additionalProperties": false,
|
|
@@ -1418,13 +1611,53 @@
|
|
|
1418
1611
|
}
|
|
1419
1612
|
},
|
|
1420
1613
|
"required": [
|
|
1421
|
-
"binding"
|
|
1422
|
-
"id"
|
|
1614
|
+
"binding"
|
|
1423
1615
|
],
|
|
1424
1616
|
"type": "object"
|
|
1425
1617
|
},
|
|
1426
1618
|
"type": "array"
|
|
1427
1619
|
},
|
|
1620
|
+
"legacy_assets": {
|
|
1621
|
+
"anyOf": [
|
|
1622
|
+
{
|
|
1623
|
+
"additionalProperties": false,
|
|
1624
|
+
"properties": {
|
|
1625
|
+
"browser_TTL": {
|
|
1626
|
+
"type": "number"
|
|
1627
|
+
},
|
|
1628
|
+
"bucket": {
|
|
1629
|
+
"type": "string"
|
|
1630
|
+
},
|
|
1631
|
+
"exclude": {
|
|
1632
|
+
"items": {
|
|
1633
|
+
"type": "string"
|
|
1634
|
+
},
|
|
1635
|
+
"type": "array"
|
|
1636
|
+
},
|
|
1637
|
+
"include": {
|
|
1638
|
+
"items": {
|
|
1639
|
+
"type": "string"
|
|
1640
|
+
},
|
|
1641
|
+
"type": "array"
|
|
1642
|
+
},
|
|
1643
|
+
"serve_single_page_app": {
|
|
1644
|
+
"type": "boolean"
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
"required": [
|
|
1648
|
+
"bucket",
|
|
1649
|
+
"include",
|
|
1650
|
+
"exclude",
|
|
1651
|
+
"serve_single_page_app"
|
|
1652
|
+
],
|
|
1653
|
+
"type": "object"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"type": "string"
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1659
|
+
"description": "Old behaviour of serving a folder of static assets with your Worker, without any additional code. This can either be a string, or an object with additional config fields. Will be deprecated in the near future in favor of `assets`."
|
|
1660
|
+
},
|
|
1428
1661
|
"legacy_env": {
|
|
1429
1662
|
"description": "A boolean to enable \"legacy\" style wrangler environments (from Wrangler v1). These have been superseded by Services, but there may be projects that won't (or can't) use them. If you're using a legacy environment, you can set this to `true` to enable it.",
|
|
1430
1663
|
"type": "boolean"
|
|
@@ -1435,7 +1668,9 @@
|
|
|
1435
1668
|
},
|
|
1436
1669
|
"logfwdr": {
|
|
1437
1670
|
"additionalProperties": false,
|
|
1438
|
-
"default":
|
|
1671
|
+
"default": {
|
|
1672
|
+
"bindings": []
|
|
1673
|
+
},
|
|
1439
1674
|
"description": "List of bindings that you will send to logfwdr",
|
|
1440
1675
|
"properties": {
|
|
1441
1676
|
"bindings": {
|
|
@@ -1477,51 +1712,7 @@
|
|
|
1477
1712
|
"default": [],
|
|
1478
1713
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
|
1479
1714
|
"items": {
|
|
1480
|
-
"
|
|
1481
|
-
"properties": {
|
|
1482
|
-
"deleted_classes": {
|
|
1483
|
-
"description": "The Durable Objects being removed.",
|
|
1484
|
-
"items": {
|
|
1485
|
-
"type": "string"
|
|
1486
|
-
},
|
|
1487
|
-
"type": "array"
|
|
1488
|
-
},
|
|
1489
|
-
"new_classes": {
|
|
1490
|
-
"description": "The new Durable Objects being defined.",
|
|
1491
|
-
"items": {
|
|
1492
|
-
"type": "string"
|
|
1493
|
-
},
|
|
1494
|
-
"type": "array"
|
|
1495
|
-
},
|
|
1496
|
-
"renamed_classes": {
|
|
1497
|
-
"description": "The Durable Objects being renamed.",
|
|
1498
|
-
"items": {
|
|
1499
|
-
"additionalProperties": false,
|
|
1500
|
-
"properties": {
|
|
1501
|
-
"from": {
|
|
1502
|
-
"type": "string"
|
|
1503
|
-
},
|
|
1504
|
-
"to": {
|
|
1505
|
-
"type": "string"
|
|
1506
|
-
}
|
|
1507
|
-
},
|
|
1508
|
-
"required": [
|
|
1509
|
-
"from",
|
|
1510
|
-
"to"
|
|
1511
|
-
],
|
|
1512
|
-
"type": "object"
|
|
1513
|
-
},
|
|
1514
|
-
"type": "array"
|
|
1515
|
-
},
|
|
1516
|
-
"tag": {
|
|
1517
|
-
"description": "A unique identifier for this migration.",
|
|
1518
|
-
"type": "string"
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
"required": [
|
|
1522
|
-
"tag"
|
|
1523
|
-
],
|
|
1524
|
-
"type": "object"
|
|
1715
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
|
1525
1716
|
},
|
|
1526
1717
|
"type": "array"
|
|
1527
1718
|
},
|
|
@@ -1534,7 +1725,7 @@
|
|
|
1534
1725
|
"type": "boolean"
|
|
1535
1726
|
},
|
|
1536
1727
|
"mtls_certificates": {
|
|
1537
|
-
"default":
|
|
1728
|
+
"default": [],
|
|
1538
1729
|
"description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1539
1730
|
"items": {
|
|
1540
1731
|
"additionalProperties": false,
|
|
@@ -1568,14 +1759,44 @@
|
|
|
1568
1759
|
"description": "Add polyfills for node builtin modules and globals",
|
|
1569
1760
|
"type": "boolean"
|
|
1570
1761
|
},
|
|
1762
|
+
"observability": {
|
|
1763
|
+
"$ref": "#/definitions/Observability",
|
|
1764
|
+
"description": "Specify the observability behavior of the Worker."
|
|
1765
|
+
},
|
|
1571
1766
|
"pages_build_output_dir": {
|
|
1572
|
-
"description": "The directory of static assets to serve.\n\nThe presence of this field in
|
|
1767
|
+
"description": "The directory of static assets to serve.\n\nThe presence of this field in a Wrangler configuration file indicates a Pages project, and will prompt the handling of the configuration file according to the Pages-specific validation rules.",
|
|
1573
1768
|
"type": "string"
|
|
1574
1769
|
},
|
|
1770
|
+
"pipelines": {
|
|
1771
|
+
"default": [],
|
|
1772
|
+
"description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1773
|
+
"items": {
|
|
1774
|
+
"additionalProperties": false,
|
|
1775
|
+
"properties": {
|
|
1776
|
+
"binding": {
|
|
1777
|
+
"description": "The binding name used to refer to the bound service.",
|
|
1778
|
+
"type": "string"
|
|
1779
|
+
},
|
|
1780
|
+
"pipeline": {
|
|
1781
|
+
"description": "Name of the Pipeline to bind",
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
"required": [
|
|
1786
|
+
"binding",
|
|
1787
|
+
"pipeline"
|
|
1788
|
+
],
|
|
1789
|
+
"type": "object"
|
|
1790
|
+
},
|
|
1791
|
+
"type": "array"
|
|
1792
|
+
},
|
|
1575
1793
|
"placement": {
|
|
1576
1794
|
"additionalProperties": false,
|
|
1577
1795
|
"description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
|
|
1578
1796
|
"properties": {
|
|
1797
|
+
"hint": {
|
|
1798
|
+
"type": "string"
|
|
1799
|
+
},
|
|
1579
1800
|
"mode": {
|
|
1580
1801
|
"enum": [
|
|
1581
1802
|
"off",
|
|
@@ -1593,9 +1814,17 @@
|
|
|
1593
1814
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
1594
1815
|
"type": "boolean"
|
|
1595
1816
|
},
|
|
1817
|
+
"preview_urls": {
|
|
1818
|
+
"default": true,
|
|
1819
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
1820
|
+
"type": "boolean"
|
|
1821
|
+
},
|
|
1596
1822
|
"queues": {
|
|
1597
1823
|
"additionalProperties": false,
|
|
1598
|
-
"default":
|
|
1824
|
+
"default": {
|
|
1825
|
+
"consumers": [],
|
|
1826
|
+
"producers": []
|
|
1827
|
+
},
|
|
1599
1828
|
"description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1600
1829
|
"properties": {
|
|
1601
1830
|
"consumers": {
|
|
@@ -1680,7 +1909,7 @@
|
|
|
1680
1909
|
"type": "object"
|
|
1681
1910
|
},
|
|
1682
1911
|
"r2_buckets": {
|
|
1683
|
-
"default":
|
|
1912
|
+
"default": [],
|
|
1684
1913
|
"description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1685
1914
|
"items": {
|
|
1686
1915
|
"additionalProperties": false,
|
|
@@ -1703,8 +1932,7 @@
|
|
|
1703
1932
|
}
|
|
1704
1933
|
},
|
|
1705
1934
|
"required": [
|
|
1706
|
-
"binding"
|
|
1707
|
-
"bucket_name"
|
|
1935
|
+
"binding"
|
|
1708
1936
|
],
|
|
1709
1937
|
"type": "object"
|
|
1710
1938
|
},
|
|
@@ -1729,7 +1957,7 @@
|
|
|
1729
1957
|
"type": "array"
|
|
1730
1958
|
},
|
|
1731
1959
|
"send_email": {
|
|
1732
|
-
"default":
|
|
1960
|
+
"default": [],
|
|
1733
1961
|
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1734
1962
|
"items": {
|
|
1735
1963
|
"additionalProperties": false,
|
|
@@ -1762,7 +1990,7 @@
|
|
|
1762
1990
|
"type": "boolean"
|
|
1763
1991
|
},
|
|
1764
1992
|
"services": {
|
|
1765
|
-
"default":
|
|
1993
|
+
"default": [],
|
|
1766
1994
|
"description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1767
1995
|
"items": {
|
|
1768
1996
|
"additionalProperties": false,
|
|
@@ -1797,7 +2025,7 @@
|
|
|
1797
2025
|
"description": "The definition of a Worker Site, a feature that lets you upload static assets with your Worker.\n\nMore details at https://developers.cloudflare.com/workers/platform/sites",
|
|
1798
2026
|
"properties": {
|
|
1799
2027
|
"bucket": {
|
|
1800
|
-
"description": "The directory containing your static assets.\n\nIt must be a path relative to your
|
|
2028
|
+
"description": "The directory containing your static assets.\n\nIt must be a path relative to your Wrangler configuration file. Example: bucket = \"./public\"\n\nIf there is a `site` field then it must contain this `bucket` field.",
|
|
1801
2029
|
"type": "string"
|
|
1802
2030
|
},
|
|
1803
2031
|
"entry-point": {
|
|
@@ -1828,7 +2056,7 @@
|
|
|
1828
2056
|
"type": "object"
|
|
1829
2057
|
},
|
|
1830
2058
|
"tail_consumers": {
|
|
1831
|
-
"default":
|
|
2059
|
+
"default": [],
|
|
1832
2060
|
"description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1833
2061
|
"items": {
|
|
1834
2062
|
"$ref": "#/definitions/TailConsumer"
|
|
@@ -1844,7 +2072,9 @@
|
|
|
1844
2072
|
},
|
|
1845
2073
|
"triggers": {
|
|
1846
2074
|
"additionalProperties": false,
|
|
1847
|
-
"default":
|
|
2075
|
+
"default": {
|
|
2076
|
+
"crons": []
|
|
2077
|
+
},
|
|
1848
2078
|
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
|
1849
2079
|
"properties": {
|
|
1850
2080
|
"crons": {
|
|
@@ -1875,7 +2105,7 @@
|
|
|
1875
2105
|
},
|
|
1876
2106
|
"unsafe": {
|
|
1877
2107
|
"additionalProperties": false,
|
|
1878
|
-
"default":
|
|
2108
|
+
"default": {},
|
|
1879
2109
|
"description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1880
2110
|
"properties": {
|
|
1881
2111
|
"bindings": {
|
|
@@ -1965,12 +2195,12 @@
|
|
|
1965
2195
|
}
|
|
1966
2196
|
]
|
|
1967
2197
|
},
|
|
1968
|
-
"default":
|
|
2198
|
+
"default": {},
|
|
1969
2199
|
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1970
2200
|
"type": "object"
|
|
1971
2201
|
},
|
|
1972
2202
|
"vectorize": {
|
|
1973
|
-
"default":
|
|
2203
|
+
"default": [],
|
|
1974
2204
|
"description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
1975
2205
|
"items": {
|
|
1976
2206
|
"additionalProperties": false,
|
|
@@ -2018,10 +2248,18 @@
|
|
|
2018
2248
|
"type": "string"
|
|
2019
2249
|
},
|
|
2020
2250
|
"workers_dev": {
|
|
2021
|
-
"default":
|
|
2022
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker
|
|
2251
|
+
"default": true,
|
|
2252
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
|
|
2023
2253
|
"type": "boolean"
|
|
2024
2254
|
},
|
|
2255
|
+
"workflows": {
|
|
2256
|
+
"default": [],
|
|
2257
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2258
|
+
"items": {
|
|
2259
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
2260
|
+
},
|
|
2261
|
+
"type": "array"
|
|
2262
|
+
},
|
|
2025
2263
|
"zone_id": {
|
|
2026
2264
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
2027
2265
|
"type": "string"
|
|
@@ -2082,7 +2320,7 @@
|
|
|
2082
2320
|
},
|
|
2083
2321
|
"ai": {
|
|
2084
2322
|
"additionalProperties": false,
|
|
2085
|
-
"default":
|
|
2323
|
+
"default": {},
|
|
2086
2324
|
"description": "Binding to the AI project.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2087
2325
|
"properties": {
|
|
2088
2326
|
"binding": {
|
|
@@ -2098,7 +2336,7 @@
|
|
|
2098
2336
|
"type": "object"
|
|
2099
2337
|
},
|
|
2100
2338
|
"analytics_engine_datasets": {
|
|
2101
|
-
"default":
|
|
2339
|
+
"default": [],
|
|
2102
2340
|
"description": "Specifies analytics engine datasets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2103
2341
|
"items": {
|
|
2104
2342
|
"additionalProperties": false,
|
|
@@ -2119,13 +2357,17 @@
|
|
|
2119
2357
|
},
|
|
2120
2358
|
"type": "array"
|
|
2121
2359
|
},
|
|
2360
|
+
"assets": {
|
|
2361
|
+
"$ref": "#/definitions/Assets",
|
|
2362
|
+
"description": "Specify the directory of static assets to deploy/serve\n\nMore details at https://developers.cloudflare.com/workers/frameworks/"
|
|
2363
|
+
},
|
|
2122
2364
|
"base_dir": {
|
|
2123
2365
|
"description": "The directory in which module rules should be evaluated when including additional files into a Worker deployment. This defaults to the directory containing the `main` entry point of the Worker if not specified.",
|
|
2124
2366
|
"type": "string"
|
|
2125
2367
|
},
|
|
2126
2368
|
"browser": {
|
|
2127
2369
|
"additionalProperties": false,
|
|
2128
|
-
"default":
|
|
2370
|
+
"default": {},
|
|
2129
2371
|
"description": "A browser that will be usable from the Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2130
2372
|
"properties": {
|
|
2131
2373
|
"binding": {
|
|
@@ -2176,7 +2418,7 @@
|
|
|
2176
2418
|
},
|
|
2177
2419
|
"cloudchamber": {
|
|
2178
2420
|
"$ref": "#/definitions/CloudchamberConfig",
|
|
2179
|
-
"default":
|
|
2421
|
+
"default": {},
|
|
2180
2422
|
"description": "Cloudchamber configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment."
|
|
2181
2423
|
},
|
|
2182
2424
|
"compatibility_date": {
|
|
@@ -2184,38 +2426,33 @@
|
|
|
2184
2426
|
"type": "string"
|
|
2185
2427
|
},
|
|
2186
2428
|
"compatibility_flags": {
|
|
2187
|
-
"default":
|
|
2188
|
-
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with
|
|
2429
|
+
"default": [],
|
|
2430
|
+
"description": "A list of flags that enable features from upcoming features of the Workers runtime, usually used together with compatibility_date.\n\nMore details at https://developers.cloudflare.com/workers/platform/compatibility-flags",
|
|
2189
2431
|
"items": {
|
|
2190
2432
|
"type": "string"
|
|
2191
2433
|
},
|
|
2192
2434
|
"type": "array"
|
|
2193
2435
|
},
|
|
2194
|
-
"
|
|
2195
|
-
"
|
|
2196
|
-
"description": "
|
|
2197
|
-
"
|
|
2198
|
-
"
|
|
2199
|
-
|
|
2200
|
-
"
|
|
2201
|
-
|
|
2202
|
-
"
|
|
2436
|
+
"containers": {
|
|
2437
|
+
"additionalProperties": false,
|
|
2438
|
+
"description": "Container related configuration",
|
|
2439
|
+
"properties": {
|
|
2440
|
+
"app": {
|
|
2441
|
+
"default": {},
|
|
2442
|
+
"description": "Container app configuration\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2443
|
+
"items": {
|
|
2444
|
+
"$ref": "#/definitions/ContainerApp"
|
|
2203
2445
|
},
|
|
2204
|
-
"
|
|
2205
|
-
|
|
2206
|
-
"type": "string"
|
|
2207
|
-
}
|
|
2208
|
-
},
|
|
2209
|
-
"required": [
|
|
2210
|
-
"binding",
|
|
2211
|
-
"project_id"
|
|
2212
|
-
],
|
|
2213
|
-
"type": "object"
|
|
2446
|
+
"type": "array"
|
|
2447
|
+
}
|
|
2214
2448
|
},
|
|
2215
|
-
"
|
|
2449
|
+
"required": [
|
|
2450
|
+
"app"
|
|
2451
|
+
],
|
|
2452
|
+
"type": "object"
|
|
2216
2453
|
},
|
|
2217
2454
|
"d1_databases": {
|
|
2218
|
-
"default":
|
|
2455
|
+
"default": [],
|
|
2219
2456
|
"description": "Specifies D1 databases that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2220
2457
|
"items": {
|
|
2221
2458
|
"additionalProperties": false,
|
|
@@ -2250,9 +2487,7 @@
|
|
|
2250
2487
|
}
|
|
2251
2488
|
},
|
|
2252
2489
|
"required": [
|
|
2253
|
-
"binding"
|
|
2254
|
-
"database_name",
|
|
2255
|
-
"database_id"
|
|
2490
|
+
"binding"
|
|
2256
2491
|
],
|
|
2257
2492
|
"type": "object"
|
|
2258
2493
|
},
|
|
@@ -2262,12 +2497,12 @@
|
|
|
2262
2497
|
"additionalProperties": {
|
|
2263
2498
|
"type": "string"
|
|
2264
2499
|
},
|
|
2265
|
-
"default":
|
|
2500
|
+
"default": {},
|
|
2266
2501
|
"description": "A map of values to substitute when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2267
2502
|
"type": "object"
|
|
2268
2503
|
},
|
|
2269
2504
|
"dispatch_namespaces": {
|
|
2270
|
-
"default":
|
|
2505
|
+
"default": [],
|
|
2271
2506
|
"description": "Specifies namespace bindings that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2272
2507
|
"items": {
|
|
2273
2508
|
"additionalProperties": false,
|
|
@@ -2295,7 +2530,9 @@
|
|
|
2295
2530
|
},
|
|
2296
2531
|
"durable_objects": {
|
|
2297
2532
|
"additionalProperties": false,
|
|
2298
|
-
"default":
|
|
2533
|
+
"default": {
|
|
2534
|
+
"bindings": []
|
|
2535
|
+
},
|
|
2299
2536
|
"description": "A list of durable objects that your Worker should be bound to.\n\nFor more information about Durable Objects, see the documentation at https://developers.cloudflare.com/workers/learning/using-durable-objects\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2300
2537
|
"properties": {
|
|
2301
2538
|
"bindings": {
|
|
@@ -2308,7 +2545,7 @@
|
|
|
2308
2545
|
"type": "object"
|
|
2309
2546
|
},
|
|
2310
2547
|
"experimental_services": {
|
|
2311
|
-
"default":
|
|
2548
|
+
"default": [],
|
|
2312
2549
|
"deprecated": "DO NOT USE. We'd added this to test the new service binding system, but the proper way to test experimental features is to use `unsafe.bindings` configuration.",
|
|
2313
2550
|
"description": "A list of services that your Worker should be bound to.",
|
|
2314
2551
|
"items": {
|
|
@@ -2345,7 +2582,7 @@
|
|
|
2345
2582
|
"type": "boolean"
|
|
2346
2583
|
},
|
|
2347
2584
|
"hyperdrive": {
|
|
2348
|
-
"default":
|
|
2585
|
+
"default": [],
|
|
2349
2586
|
"description": "Specifies Hyperdrive configs that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2350
2587
|
"items": {
|
|
2351
2588
|
"additionalProperties": false,
|
|
@@ -2372,12 +2609,12 @@
|
|
|
2372
2609
|
"type": "array"
|
|
2373
2610
|
},
|
|
2374
2611
|
"jsx_factory": {
|
|
2375
|
-
"default": "
|
|
2612
|
+
"default": "React.createElement",
|
|
2376
2613
|
"description": "The function to use to replace jsx syntax.",
|
|
2377
2614
|
"type": "string"
|
|
2378
2615
|
},
|
|
2379
2616
|
"jsx_fragment": {
|
|
2380
|
-
"default": "
|
|
2617
|
+
"default": "React.Fragment",
|
|
2381
2618
|
"description": "The function to use to replace jsx fragment syntax.",
|
|
2382
2619
|
"type": "string"
|
|
2383
2620
|
},
|
|
@@ -2387,7 +2624,7 @@
|
|
|
2387
2624
|
"type": "string"
|
|
2388
2625
|
},
|
|
2389
2626
|
"kv_namespaces": {
|
|
2390
|
-
"default":
|
|
2627
|
+
"default": [],
|
|
2391
2628
|
"description": "These specify any Workers KV Namespaces you want to access from inside your Worker.\n\nTo learn more about KV Namespaces, see the documentation at https://developers.cloudflare.com/workers/learning/how-kv-works\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2392
2629
|
"items": {
|
|
2393
2630
|
"additionalProperties": false,
|
|
@@ -2406,8 +2643,7 @@
|
|
|
2406
2643
|
}
|
|
2407
2644
|
},
|
|
2408
2645
|
"required": [
|
|
2409
|
-
"binding"
|
|
2410
|
-
"id"
|
|
2646
|
+
"binding"
|
|
2411
2647
|
],
|
|
2412
2648
|
"type": "object"
|
|
2413
2649
|
},
|
|
@@ -2419,7 +2655,9 @@
|
|
|
2419
2655
|
},
|
|
2420
2656
|
"logfwdr": {
|
|
2421
2657
|
"additionalProperties": false,
|
|
2422
|
-
"default":
|
|
2658
|
+
"default": {
|
|
2659
|
+
"bindings": []
|
|
2660
|
+
},
|
|
2423
2661
|
"description": "List of bindings that you will send to logfwdr",
|
|
2424
2662
|
"properties": {
|
|
2425
2663
|
"bindings": {
|
|
@@ -2461,51 +2699,7 @@
|
|
|
2461
2699
|
"default": [],
|
|
2462
2700
|
"description": "A list of migrations that should be uploaded with your Worker.\n\nThese define changes in your Durable Object declarations.\n\nMore details at https://developers.cloudflare.com/workers/learning/using-durable-objects#configuring-durable-object-classes-with-migrations",
|
|
2463
2701
|
"items": {
|
|
2464
|
-
"
|
|
2465
|
-
"properties": {
|
|
2466
|
-
"deleted_classes": {
|
|
2467
|
-
"description": "The Durable Objects being removed.",
|
|
2468
|
-
"items": {
|
|
2469
|
-
"type": "string"
|
|
2470
|
-
},
|
|
2471
|
-
"type": "array"
|
|
2472
|
-
},
|
|
2473
|
-
"new_classes": {
|
|
2474
|
-
"description": "The new Durable Objects being defined.",
|
|
2475
|
-
"items": {
|
|
2476
|
-
"type": "string"
|
|
2477
|
-
},
|
|
2478
|
-
"type": "array"
|
|
2479
|
-
},
|
|
2480
|
-
"renamed_classes": {
|
|
2481
|
-
"description": "The Durable Objects being renamed.",
|
|
2482
|
-
"items": {
|
|
2483
|
-
"additionalProperties": false,
|
|
2484
|
-
"properties": {
|
|
2485
|
-
"from": {
|
|
2486
|
-
"type": "string"
|
|
2487
|
-
},
|
|
2488
|
-
"to": {
|
|
2489
|
-
"type": "string"
|
|
2490
|
-
}
|
|
2491
|
-
},
|
|
2492
|
-
"required": [
|
|
2493
|
-
"from",
|
|
2494
|
-
"to"
|
|
2495
|
-
],
|
|
2496
|
-
"type": "object"
|
|
2497
|
-
},
|
|
2498
|
-
"type": "array"
|
|
2499
|
-
},
|
|
2500
|
-
"tag": {
|
|
2501
|
-
"description": "A unique identifier for this migration.",
|
|
2502
|
-
"type": "string"
|
|
2503
|
-
}
|
|
2504
|
-
},
|
|
2505
|
-
"required": [
|
|
2506
|
-
"tag"
|
|
2507
|
-
],
|
|
2508
|
-
"type": "object"
|
|
2702
|
+
"$ref": "#/definitions/DurableObjectMigration"
|
|
2509
2703
|
},
|
|
2510
2704
|
"type": "array"
|
|
2511
2705
|
},
|
|
@@ -2514,7 +2708,7 @@
|
|
|
2514
2708
|
"type": "boolean"
|
|
2515
2709
|
},
|
|
2516
2710
|
"mtls_certificates": {
|
|
2517
|
-
"default":
|
|
2711
|
+
"default": [],
|
|
2518
2712
|
"description": "Specifies a list of mTLS certificates that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2519
2713
|
"items": {
|
|
2520
2714
|
"additionalProperties": false,
|
|
@@ -2548,10 +2742,40 @@
|
|
|
2548
2742
|
"description": "Add polyfills for node builtin modules and globals",
|
|
2549
2743
|
"type": "boolean"
|
|
2550
2744
|
},
|
|
2745
|
+
"observability": {
|
|
2746
|
+
"$ref": "#/definitions/Observability",
|
|
2747
|
+
"description": "Specify the observability behavior of the Worker."
|
|
2748
|
+
},
|
|
2749
|
+
"pipelines": {
|
|
2750
|
+
"default": [],
|
|
2751
|
+
"description": "Specifies list of Pipelines bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2752
|
+
"items": {
|
|
2753
|
+
"additionalProperties": false,
|
|
2754
|
+
"properties": {
|
|
2755
|
+
"binding": {
|
|
2756
|
+
"description": "The binding name used to refer to the bound service.",
|
|
2757
|
+
"type": "string"
|
|
2758
|
+
},
|
|
2759
|
+
"pipeline": {
|
|
2760
|
+
"description": "Name of the Pipeline to bind",
|
|
2761
|
+
"type": "string"
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
"required": [
|
|
2765
|
+
"binding",
|
|
2766
|
+
"pipeline"
|
|
2767
|
+
],
|
|
2768
|
+
"type": "object"
|
|
2769
|
+
},
|
|
2770
|
+
"type": "array"
|
|
2771
|
+
},
|
|
2551
2772
|
"placement": {
|
|
2552
2773
|
"additionalProperties": false,
|
|
2553
2774
|
"description": "Specify how the Worker should be located to minimize round-trip time.\n\nMore details: https://developers.cloudflare.com/workers/platform/smart-placement/",
|
|
2554
2775
|
"properties": {
|
|
2776
|
+
"hint": {
|
|
2777
|
+
"type": "string"
|
|
2778
|
+
},
|
|
2555
2779
|
"mode": {
|
|
2556
2780
|
"enum": [
|
|
2557
2781
|
"off",
|
|
@@ -2569,9 +2793,17 @@
|
|
|
2569
2793
|
"description": "Determines whether Wrangler will preserve bundled file names. Defaults to false. If left unset, files will be named using the pattern ${fileHash}-${basename}, for example, `34de60b44167af5c5a709e62a4e20c4f18c9e3b6-favicon.ico`.",
|
|
2570
2794
|
"type": "boolean"
|
|
2571
2795
|
},
|
|
2796
|
+
"preview_urls": {
|
|
2797
|
+
"default": true,
|
|
2798
|
+
"description": "Whether we use <version>-<name>.<subdomain>.workers.dev to serve Preview URLs for your Worker.",
|
|
2799
|
+
"type": "boolean"
|
|
2800
|
+
},
|
|
2572
2801
|
"queues": {
|
|
2573
2802
|
"additionalProperties": false,
|
|
2574
|
-
"default":
|
|
2803
|
+
"default": {
|
|
2804
|
+
"consumers": [],
|
|
2805
|
+
"producers": []
|
|
2806
|
+
},
|
|
2575
2807
|
"description": "Specifies Queues that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2576
2808
|
"properties": {
|
|
2577
2809
|
"consumers": {
|
|
@@ -2656,7 +2888,7 @@
|
|
|
2656
2888
|
"type": "object"
|
|
2657
2889
|
},
|
|
2658
2890
|
"r2_buckets": {
|
|
2659
|
-
"default":
|
|
2891
|
+
"default": [],
|
|
2660
2892
|
"description": "Specifies R2 buckets that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2661
2893
|
"items": {
|
|
2662
2894
|
"additionalProperties": false,
|
|
@@ -2679,8 +2911,7 @@
|
|
|
2679
2911
|
}
|
|
2680
2912
|
},
|
|
2681
2913
|
"required": [
|
|
2682
|
-
"binding"
|
|
2683
|
-
"bucket_name"
|
|
2914
|
+
"binding"
|
|
2684
2915
|
],
|
|
2685
2916
|
"type": "object"
|
|
2686
2917
|
},
|
|
@@ -2705,7 +2936,7 @@
|
|
|
2705
2936
|
"type": "array"
|
|
2706
2937
|
},
|
|
2707
2938
|
"send_email": {
|
|
2708
|
-
"default":
|
|
2939
|
+
"default": [],
|
|
2709
2940
|
"description": "These specify bindings to send email from inside your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2710
2941
|
"items": {
|
|
2711
2942
|
"additionalProperties": false,
|
|
@@ -2734,7 +2965,7 @@
|
|
|
2734
2965
|
"type": "array"
|
|
2735
2966
|
},
|
|
2736
2967
|
"services": {
|
|
2737
|
-
"default":
|
|
2968
|
+
"default": [],
|
|
2738
2969
|
"description": "Specifies service bindings (Worker-to-Worker) that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2739
2970
|
"items": {
|
|
2740
2971
|
"additionalProperties": false,
|
|
@@ -2765,7 +2996,7 @@
|
|
|
2765
2996
|
"type": "array"
|
|
2766
2997
|
},
|
|
2767
2998
|
"tail_consumers": {
|
|
2768
|
-
"default":
|
|
2999
|
+
"default": [],
|
|
2769
3000
|
"description": "Specifies a list of Tail Workers that are bound to this Worker environment\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2770
3001
|
"items": {
|
|
2771
3002
|
"$ref": "#/definitions/TailConsumer"
|
|
@@ -2774,7 +3005,9 @@
|
|
|
2774
3005
|
},
|
|
2775
3006
|
"triggers": {
|
|
2776
3007
|
"additionalProperties": false,
|
|
2777
|
-
"default":
|
|
3008
|
+
"default": {
|
|
3009
|
+
"crons": []
|
|
3010
|
+
},
|
|
2778
3011
|
"description": "\"Cron\" definitions to trigger a Worker's \"scheduled\" function.\n\nLets you call Workers periodically, much like a cron job.\n\nMore details here https://developers.cloudflare.com/workers/platform/cron-triggers",
|
|
2779
3012
|
"properties": {
|
|
2780
3013
|
"crons": {
|
|
@@ -2795,7 +3028,7 @@
|
|
|
2795
3028
|
},
|
|
2796
3029
|
"unsafe": {
|
|
2797
3030
|
"additionalProperties": false,
|
|
2798
|
-
"default":
|
|
3031
|
+
"default": {},
|
|
2799
3032
|
"description": "\"Unsafe\" tables for features that aren't directly supported by wrangler.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2800
3033
|
"properties": {
|
|
2801
3034
|
"bindings": {
|
|
@@ -2885,12 +3118,12 @@
|
|
|
2885
3118
|
}
|
|
2886
3119
|
]
|
|
2887
3120
|
},
|
|
2888
|
-
"default":
|
|
3121
|
+
"default": {},
|
|
2889
3122
|
"description": "A map of environment variables to set when deploying your Worker.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2890
3123
|
"type": "object"
|
|
2891
3124
|
},
|
|
2892
3125
|
"vectorize": {
|
|
2893
|
-
"default":
|
|
3126
|
+
"default": [],
|
|
2894
3127
|
"description": "Specifies Vectorize indexes that are bound to this Worker environment.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
2895
3128
|
"items": {
|
|
2896
3129
|
"additionalProperties": false,
|
|
@@ -2926,10 +3159,18 @@
|
|
|
2926
3159
|
"type": "object"
|
|
2927
3160
|
},
|
|
2928
3161
|
"workers_dev": {
|
|
2929
|
-
"default":
|
|
2930
|
-
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker
|
|
3162
|
+
"default": true,
|
|
3163
|
+
"description": "Whether we use <name>.<subdomain>.workers.dev to test and deploy your Worker.",
|
|
2931
3164
|
"type": "boolean"
|
|
2932
3165
|
},
|
|
3166
|
+
"workflows": {
|
|
3167
|
+
"default": [],
|
|
3168
|
+
"description": "A list of workflows that your Worker should be bound to.\n\nNOTE: This field is not automatically inherited from the top level environment, and so must be specified in every named environment.",
|
|
3169
|
+
"items": {
|
|
3170
|
+
"$ref": "#/definitions/WorkflowBinding"
|
|
3171
|
+
},
|
|
3172
|
+
"type": "array"
|
|
3173
|
+
},
|
|
2933
3174
|
"zone_id": {
|
|
2934
3175
|
"description": "TODO: remove this as it has been deprecated.\n\nThis is just here for now because the `route` commands use it. So we need to include it in this type so it is available.",
|
|
2935
3176
|
"type": "string"
|
|
@@ -2940,7 +3181,7 @@
|
|
|
2940
3181
|
"Route": {
|
|
2941
3182
|
"anyOf": [
|
|
2942
3183
|
{
|
|
2943
|
-
"
|
|
3184
|
+
"type": "string"
|
|
2944
3185
|
},
|
|
2945
3186
|
{
|
|
2946
3187
|
"$ref": "#/definitions/ZoneIdRoute"
|
|
@@ -2976,9 +3217,6 @@
|
|
|
2976
3217
|
],
|
|
2977
3218
|
"type": "object"
|
|
2978
3219
|
},
|
|
2979
|
-
"SimpleRoute": {
|
|
2980
|
-
"type": "string"
|
|
2981
|
-
},
|
|
2982
3220
|
"TailConsumer": {
|
|
2983
3221
|
"additionalProperties": false,
|
|
2984
3222
|
"properties": {
|
|
@@ -3017,6 +3255,33 @@
|
|
|
3017
3255
|
],
|
|
3018
3256
|
"type": "object"
|
|
3019
3257
|
},
|
|
3258
|
+
"WorkflowBinding": {
|
|
3259
|
+
"additionalProperties": false,
|
|
3260
|
+
"properties": {
|
|
3261
|
+
"binding": {
|
|
3262
|
+
"description": "The name of the binding used to refer to the Workflow",
|
|
3263
|
+
"type": "string"
|
|
3264
|
+
},
|
|
3265
|
+
"class_name": {
|
|
3266
|
+
"description": "The exported class name of the Workflow",
|
|
3267
|
+
"type": "string"
|
|
3268
|
+
},
|
|
3269
|
+
"name": {
|
|
3270
|
+
"description": "The name of the Workflow",
|
|
3271
|
+
"type": "string"
|
|
3272
|
+
},
|
|
3273
|
+
"script_name": {
|
|
3274
|
+
"description": "The script where the Workflow is defined (if it's external to this Worker)",
|
|
3275
|
+
"type": "string"
|
|
3276
|
+
}
|
|
3277
|
+
},
|
|
3278
|
+
"required": [
|
|
3279
|
+
"binding",
|
|
3280
|
+
"name",
|
|
3281
|
+
"class_name"
|
|
3282
|
+
],
|
|
3283
|
+
"type": "object"
|
|
3284
|
+
},
|
|
3020
3285
|
"ZoneIdRoute": {
|
|
3021
3286
|
"additionalProperties": false,
|
|
3022
3287
|
"properties": {
|