nitropack-nightly 2.11.14-20250704-090507.e6624f7b → 2.12.0-20250704-082153.07efb4e3
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/dist/meta/index.mjs
CHANGED
|
@@ -35,7 +35,6 @@ export type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRout
|
|
|
35
35
|
export type CloudchamberConfig = {
|
|
36
36
|
image?: string;
|
|
37
37
|
location?: string;
|
|
38
|
-
instance_type?: "dev" | "basic" | "standard";
|
|
39
38
|
vcpu?: number;
|
|
40
39
|
memory?: string;
|
|
41
40
|
ipv4?: boolean;
|
|
@@ -44,59 +43,11 @@ export type CloudchamberConfig = {
|
|
|
44
43
|
* Configuration for a container application
|
|
45
44
|
*/
|
|
46
45
|
export type ContainerApp = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Number of application instances
|
|
54
|
-
* @deprecated
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
instances?: number;
|
|
58
|
-
/**
|
|
59
|
-
* Number of maximum application instances.
|
|
60
|
-
* @optional
|
|
61
|
-
*/
|
|
62
|
-
max_instances?: number;
|
|
63
|
-
/**
|
|
64
|
-
* The path to a Dockerfile, or an image URI for the Cloudflare registry.
|
|
65
|
-
*/
|
|
66
|
-
image: string;
|
|
67
|
-
/**
|
|
68
|
-
* Build context of the application.
|
|
69
|
-
* @optional - defaults to the directory of `image`.
|
|
70
|
-
*/
|
|
71
|
-
image_build_context?: string;
|
|
72
|
-
/**
|
|
73
|
-
* Image variables to be passed along the image at build time.
|
|
74
|
-
* @optional
|
|
75
|
-
*/
|
|
76
|
-
image_vars?: Record<string, string>;
|
|
77
|
-
/**
|
|
78
|
-
* The class name of the Durable Object the container is connected to.
|
|
79
|
-
*/
|
|
80
|
-
class_name: string;
|
|
81
|
-
/**
|
|
82
|
-
* The scheduling policy of the application
|
|
83
|
-
* @optional
|
|
84
|
-
* @default "default"
|
|
85
|
-
*/
|
|
86
|
-
scheduling_policy?: "regional" | "moon" | "default";
|
|
87
|
-
/**
|
|
88
|
-
* The instance type to be used for the container. This sets preconfigured options for vcpu and memory
|
|
89
|
-
* @optional
|
|
90
|
-
*/
|
|
91
|
-
instance_type?: "dev" | "basic" | "standard";
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Use top level `containers` fields instead.
|
|
94
|
-
* `configuration.image` should be `image`
|
|
95
|
-
* `configuration.disk` should be set via `instance_type`
|
|
96
|
-
* @hidden
|
|
97
|
-
*/
|
|
98
|
-
configuration?: {
|
|
99
|
-
image?: string;
|
|
46
|
+
name: string;
|
|
47
|
+
instances: number;
|
|
48
|
+
scheduling_policy?: "regional" | "moon";
|
|
49
|
+
configuration: {
|
|
50
|
+
image: string;
|
|
100
51
|
labels?: {
|
|
101
52
|
name: string;
|
|
102
53
|
value: string;
|
|
@@ -106,41 +57,12 @@ export type ContainerApp = {
|
|
|
106
57
|
type: "env";
|
|
107
58
|
secret: string;
|
|
108
59
|
}[];
|
|
109
|
-
disk?: {
|
|
110
|
-
size: string;
|
|
111
|
-
};
|
|
112
60
|
};
|
|
113
|
-
/**
|
|
114
|
-
* Scheduling constraints
|
|
115
|
-
* @hidden
|
|
116
|
-
*/
|
|
117
61
|
constraints?: {
|
|
118
62
|
regions?: string[];
|
|
119
63
|
cities?: string[];
|
|
120
64
|
tier?: number;
|
|
121
65
|
};
|
|
122
|
-
/**
|
|
123
|
-
* @deprecated use the `class_name` field instead.
|
|
124
|
-
* @hidden
|
|
125
|
-
*/
|
|
126
|
-
durable_objects?: {
|
|
127
|
-
namespace_id: string;
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* How a rollout should be done, defining the size of it
|
|
131
|
-
* @optional
|
|
132
|
-
* @default 25
|
|
133
|
-
* */
|
|
134
|
-
rollout_step_percentage?: number;
|
|
135
|
-
/**
|
|
136
|
-
* How a rollout should be created. It supports the following modes:
|
|
137
|
-
* - full_auto: The container application will be rolled out fully automatically.
|
|
138
|
-
* - none: The container application won't have a roll out or update.
|
|
139
|
-
* - manual: The container application will be rollout fully by manually actioning progress steps.
|
|
140
|
-
* @optional
|
|
141
|
-
* @default "full_auto"
|
|
142
|
-
*/
|
|
143
|
-
rollout_kind?: "full_auto" | "none" | "full_manual";
|
|
144
66
|
};
|
|
145
67
|
/**
|
|
146
68
|
* Configuration in wrangler for Durable Object Migrations
|
|
@@ -185,7 +107,7 @@ interface EnvironmentInheritable {
|
|
|
185
107
|
* A date in the form yyyy-mm-dd, which will be used to determine
|
|
186
108
|
* which version of the Workers runtime is used.
|
|
187
109
|
*
|
|
188
|
-
* More details at https://developers.cloudflare.com/workers/
|
|
110
|
+
* More details at https://developers.cloudflare.com/workers/platform/compatibility-dates
|
|
189
111
|
*
|
|
190
112
|
* @inheritable
|
|
191
113
|
*/
|
|
@@ -194,7 +116,7 @@ interface EnvironmentInheritable {
|
|
|
194
116
|
* A list of flags that enable features from upcoming features of
|
|
195
117
|
* the Workers runtime, usually used together with compatibility_date.
|
|
196
118
|
*
|
|
197
|
-
* More details at https://developers.cloudflare.com/workers/
|
|
119
|
+
* More details at https://developers.cloudflare.com/workers/platform/compatibility-flags
|
|
198
120
|
*
|
|
199
121
|
* @default []
|
|
200
122
|
* @inheritable
|
|
@@ -234,7 +156,6 @@ interface EnvironmentInheritable {
|
|
|
234
156
|
* Whether we use <name>.<subdomain>.workers.dev to
|
|
235
157
|
* test and deploy your Worker.
|
|
236
158
|
*
|
|
237
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workersdev
|
|
238
159
|
*
|
|
239
160
|
* @default true
|
|
240
161
|
* @breaking
|
|
@@ -255,8 +176,6 @@ interface EnvironmentInheritable {
|
|
|
255
176
|
*
|
|
256
177
|
* Only required when workers_dev is false, and there's no scheduled Worker (see `triggers`)
|
|
257
178
|
*
|
|
258
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#types-of-routes
|
|
259
|
-
*
|
|
260
179
|
* @inheritable
|
|
261
180
|
*/
|
|
262
181
|
routes: Route[] | undefined;
|
|
@@ -308,20 +227,28 @@ interface EnvironmentInheritable {
|
|
|
308
227
|
*
|
|
309
228
|
* More details here https://developers.cloudflare.com/workers/platform/cron-triggers
|
|
310
229
|
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
* @default {crons: undefined}
|
|
230
|
+
* @default {crons:[]}
|
|
314
231
|
* @inheritable
|
|
315
232
|
*/
|
|
316
233
|
triggers: {
|
|
317
|
-
crons: string[]
|
|
234
|
+
crons: string[];
|
|
318
235
|
};
|
|
236
|
+
/**
|
|
237
|
+
* Specifies the Usage Model for your Worker. There are two options -
|
|
238
|
+
* [bundled](https://developers.cloudflare.com/workers/platform/limits#bundled-usage-model) and
|
|
239
|
+
* [unbound](https://developers.cloudflare.com/workers/platform/limits#unbound-usage-model).
|
|
240
|
+
* For newly created Workers, if the Usage Model is omitted
|
|
241
|
+
* it will be set to the [default Usage Model set on the account](https://dash.cloudflare.com/?account=workers/default-usage-model).
|
|
242
|
+
* For existing Workers, if the Usage Model is omitted, it will be
|
|
243
|
+
* set to the Usage Model configured in the dashboard for that Worker.
|
|
244
|
+
*
|
|
245
|
+
* @inheritable
|
|
246
|
+
*/
|
|
247
|
+
usage_model: "bundled" | "unbound" | undefined;
|
|
319
248
|
/**
|
|
320
249
|
* Specify limits for runtime behavior.
|
|
321
250
|
* Only supported for the "standard" Usage Model
|
|
322
251
|
*
|
|
323
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#limits
|
|
324
|
-
*
|
|
325
252
|
* @inheritable
|
|
326
253
|
*/
|
|
327
254
|
limits: UserLimits | undefined;
|
|
@@ -331,8 +258,6 @@ interface EnvironmentInheritable {
|
|
|
331
258
|
* to use Text, Data, and CompiledWasm modules, or when you wish to
|
|
332
259
|
* have a .js file be treated as an ESModule instead of CommonJS.
|
|
333
260
|
*
|
|
334
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling
|
|
335
|
-
*
|
|
336
261
|
* @inheritable
|
|
337
262
|
*/
|
|
338
263
|
rules: Rule[];
|
|
@@ -342,8 +267,6 @@ interface EnvironmentInheritable {
|
|
|
342
267
|
* Refer to the [custom builds documentation](https://developers.cloudflare.com/workers/cli-wrangler/configuration#build)
|
|
343
268
|
* for more details.
|
|
344
269
|
*
|
|
345
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#custom-builds
|
|
346
|
-
*
|
|
347
270
|
* @default {watch_dir:"./src"}
|
|
348
271
|
*/
|
|
349
272
|
build: {
|
|
@@ -353,6 +276,11 @@ interface EnvironmentInheritable {
|
|
|
353
276
|
cwd?: string;
|
|
354
277
|
/** The directory to watch for changes while using wrangler dev, defaults to the current working directory */
|
|
355
278
|
watch_dir?: string | string[];
|
|
279
|
+
/**
|
|
280
|
+
* Deprecated field previously used to configure the build and upload of the script.
|
|
281
|
+
* @deprecated
|
|
282
|
+
*/
|
|
283
|
+
upload?: DeprecatedUpload;
|
|
356
284
|
};
|
|
357
285
|
/**
|
|
358
286
|
* Skip internal build steps and directly deploy script
|
|
@@ -365,20 +293,23 @@ interface EnvironmentInheritable {
|
|
|
365
293
|
*/
|
|
366
294
|
minify: boolean | undefined;
|
|
367
295
|
/**
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
* See https://esbuild.github.io/api/#keep-names
|
|
371
|
-
*
|
|
372
|
-
* @default true
|
|
296
|
+
* Add polyfills for node builtin modules and globals
|
|
373
297
|
* @inheritable
|
|
374
298
|
*/
|
|
375
|
-
|
|
299
|
+
node_compat: boolean | undefined;
|
|
376
300
|
/**
|
|
377
301
|
* Designates this Worker as an internal-only "first-party" Worker.
|
|
378
302
|
*
|
|
379
303
|
* @inheritable
|
|
380
304
|
*/
|
|
381
305
|
first_party_worker: boolean | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* TODO: remove this as it has been deprecated.
|
|
308
|
+
*
|
|
309
|
+
* This is just here for now because the `route` commands use it.
|
|
310
|
+
* So we need to include it in this type so it is available.
|
|
311
|
+
*/
|
|
312
|
+
zone_id?: string;
|
|
382
313
|
/**
|
|
383
314
|
* List of bindings that you will send to logfwdr
|
|
384
315
|
*
|
|
@@ -406,9 +337,6 @@ interface EnvironmentInheritable {
|
|
|
406
337
|
logpush: boolean | undefined;
|
|
407
338
|
/**
|
|
408
339
|
* Include source maps when uploading this worker.
|
|
409
|
-
*
|
|
410
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#source-maps
|
|
411
|
-
*
|
|
412
340
|
* @inheritable
|
|
413
341
|
*/
|
|
414
342
|
upload_source_maps: boolean | undefined;
|
|
@@ -428,26 +356,15 @@ interface EnvironmentInheritable {
|
|
|
428
356
|
*
|
|
429
357
|
* More details at https://developers.cloudflare.com/workers/frameworks/
|
|
430
358
|
*
|
|
431
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#assets
|
|
432
|
-
*
|
|
433
359
|
* @inheritable
|
|
434
360
|
*/
|
|
435
361
|
assets: Assets | undefined;
|
|
436
362
|
/**
|
|
437
363
|
* Specify the observability behavior of the Worker.
|
|
438
364
|
*
|
|
439
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#observability
|
|
440
|
-
*
|
|
441
365
|
* @inheritable
|
|
442
366
|
*/
|
|
443
367
|
observability: Observability | undefined;
|
|
444
|
-
/**
|
|
445
|
-
* Specify the compliance region mode of the Worker.
|
|
446
|
-
*
|
|
447
|
-
* Although if the user does not specify a compliance region, the default is `public`,
|
|
448
|
-
* it can be set to `undefined` in configuration to delegate to the CLOUDFLARE_COMPLIANCE_REGION environment variable.
|
|
449
|
-
*/
|
|
450
|
-
compliance_region: "public" | "fedramp_high" | undefined;
|
|
451
368
|
}
|
|
452
369
|
export type DurableObjectBindings = {
|
|
453
370
|
/** The name of the binding used to refer to the Durable Object */
|
|
@@ -468,8 +385,6 @@ export type WorkflowBinding = {
|
|
|
468
385
|
class_name: string;
|
|
469
386
|
/** The script where the Workflow is defined (if it's external to this Worker) */
|
|
470
387
|
script_name?: string;
|
|
471
|
-
/** Whether the Workflow should be remote or not (only available under `--x-remote-bindings`) */
|
|
472
|
-
experimental_remote?: boolean;
|
|
473
388
|
};
|
|
474
389
|
/**
|
|
475
390
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|
|
@@ -495,8 +410,6 @@ export interface EnvironmentNonInheritable {
|
|
|
495
410
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
496
411
|
* and so must be specified in every named environment.
|
|
497
412
|
*
|
|
498
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
|
|
499
|
-
*
|
|
500
413
|
* @default {}
|
|
501
414
|
* @nonInheritable
|
|
502
415
|
*/
|
|
@@ -510,8 +423,6 @@ export interface EnvironmentNonInheritable {
|
|
|
510
423
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
511
424
|
* and so must be specified in every named environment.
|
|
512
425
|
*
|
|
513
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
|
|
514
|
-
*
|
|
515
426
|
* @default {bindings:[]}
|
|
516
427
|
* @nonInheritable
|
|
517
428
|
*/
|
|
@@ -540,14 +451,19 @@ export interface EnvironmentNonInheritable {
|
|
|
540
451
|
cloudchamber: CloudchamberConfig;
|
|
541
452
|
/**
|
|
542
453
|
* Container related configuration
|
|
543
|
-
*
|
|
544
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
|
545
|
-
* and so must be specified in every named environment.
|
|
546
|
-
*
|
|
547
|
-
* @default []
|
|
548
|
-
* @nonInheritable
|
|
549
454
|
*/
|
|
550
|
-
containers
|
|
455
|
+
containers: {
|
|
456
|
+
/**
|
|
457
|
+
* Container app configuration
|
|
458
|
+
*
|
|
459
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
460
|
+
* and so must be specified in every named environment.
|
|
461
|
+
*
|
|
462
|
+
* @default {}
|
|
463
|
+
* @nonInheritable
|
|
464
|
+
*/
|
|
465
|
+
app: ContainerApp[];
|
|
466
|
+
};
|
|
551
467
|
/**
|
|
552
468
|
* These specify any Workers KV Namespaces you want to
|
|
553
469
|
* access from inside your Worker.
|
|
@@ -558,8 +474,6 @@ export interface EnvironmentNonInheritable {
|
|
|
558
474
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
559
475
|
* and so must be specified in every named environment.
|
|
560
476
|
*
|
|
561
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
|
|
562
|
-
*
|
|
563
477
|
* @default []
|
|
564
478
|
* @nonInheritable
|
|
565
479
|
*/
|
|
@@ -570,8 +484,6 @@ export interface EnvironmentNonInheritable {
|
|
|
570
484
|
id?: string;
|
|
571
485
|
/** The ID of the KV namespace used during `wrangler dev` */
|
|
572
486
|
preview_id?: string;
|
|
573
|
-
/** Whether the KV namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
574
|
-
experimental_remote?: boolean;
|
|
575
487
|
}[];
|
|
576
488
|
/**
|
|
577
489
|
* These specify bindings to send email from inside your Worker.
|
|
@@ -579,8 +491,6 @@ export interface EnvironmentNonInheritable {
|
|
|
579
491
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
580
492
|
* and so must be specified in every named environment.
|
|
581
493
|
*
|
|
582
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
|
|
583
|
-
*
|
|
584
494
|
* @default []
|
|
585
495
|
* @nonInheritable
|
|
586
496
|
*/
|
|
@@ -598,8 +508,6 @@ export interface EnvironmentNonInheritable {
|
|
|
598
508
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
599
509
|
* and so must be specified in every named environment.
|
|
600
510
|
*
|
|
601
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#queues
|
|
602
|
-
*
|
|
603
511
|
* @default {consumers:[],producers:[]}
|
|
604
512
|
* @nonInheritable
|
|
605
513
|
*/
|
|
@@ -612,8 +520,6 @@ export interface EnvironmentNonInheritable {
|
|
|
612
520
|
queue: string;
|
|
613
521
|
/** The number of seconds to wait before delivering a message */
|
|
614
522
|
delivery_delay?: number;
|
|
615
|
-
/** Whether the Queue producer should be remote or not (only available under `--x-remote-bindings`) */
|
|
616
|
-
experimental_remote?: boolean;
|
|
617
523
|
}[];
|
|
618
524
|
/** Consumer configuration */
|
|
619
525
|
consumers?: {
|
|
@@ -643,8 +549,6 @@ export interface EnvironmentNonInheritable {
|
|
|
643
549
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
644
550
|
* and so must be specified in every named environment.
|
|
645
551
|
*
|
|
646
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
|
|
647
|
-
*
|
|
648
552
|
* @default []
|
|
649
553
|
* @nonInheritable
|
|
650
554
|
*/
|
|
@@ -657,8 +561,6 @@ export interface EnvironmentNonInheritable {
|
|
|
657
561
|
preview_bucket_name?: string;
|
|
658
562
|
/** The jurisdiction that the bucket exists in. Default if not present. */
|
|
659
563
|
jurisdiction?: string;
|
|
660
|
-
/** Whether the R2 bucket should be remote or not (only available under `--x-remote-bindings`) */
|
|
661
|
-
experimental_remote?: boolean;
|
|
662
564
|
}[];
|
|
663
565
|
/**
|
|
664
566
|
* Specifies D1 databases that are bound to this Worker environment.
|
|
@@ -666,8 +568,6 @@ export interface EnvironmentNonInheritable {
|
|
|
666
568
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
667
569
|
* and so must be specified in every named environment.
|
|
668
570
|
*
|
|
669
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
|
|
670
|
-
*
|
|
671
571
|
* @default []
|
|
672
572
|
* @nonInheritable
|
|
673
573
|
*/
|
|
@@ -686,8 +586,6 @@ export interface EnvironmentNonInheritable {
|
|
|
686
586
|
migrations_dir?: string;
|
|
687
587
|
/** Internal use only. */
|
|
688
588
|
database_internal_env?: string;
|
|
689
|
-
/** Whether the D1 database should be remote or not (only available under `--x-remote-bindings`) */
|
|
690
|
-
experimental_remote?: boolean;
|
|
691
589
|
}[];
|
|
692
590
|
/**
|
|
693
591
|
* Specifies Vectorize indexes that are bound to this Worker environment.
|
|
@@ -695,8 +593,6 @@ export interface EnvironmentNonInheritable {
|
|
|
695
593
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
696
594
|
* and so must be specified in every named environment.
|
|
697
595
|
*
|
|
698
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
|
|
699
|
-
*
|
|
700
596
|
* @default []
|
|
701
597
|
* @nonInheritable
|
|
702
598
|
*/
|
|
@@ -705,8 +601,6 @@ export interface EnvironmentNonInheritable {
|
|
|
705
601
|
binding: string;
|
|
706
602
|
/** The name of the index. */
|
|
707
603
|
index_name: string;
|
|
708
|
-
/** Whether the Vectorize index should be remote or not (only available under `--x-remote-bindings`) */
|
|
709
|
-
experimental_remote?: boolean;
|
|
710
604
|
}[];
|
|
711
605
|
/**
|
|
712
606
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
@@ -714,8 +608,6 @@ export interface EnvironmentNonInheritable {
|
|
|
714
608
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
715
609
|
* and so must be specified in every named environment.
|
|
716
610
|
*
|
|
717
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
|
|
718
|
-
*
|
|
719
611
|
* @default []
|
|
720
612
|
* @nonInheritable
|
|
721
613
|
*/
|
|
@@ -733,8 +625,6 @@ export interface EnvironmentNonInheritable {
|
|
|
733
625
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
734
626
|
* and so must be specified in every named environment.
|
|
735
627
|
*
|
|
736
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
|
|
737
|
-
*
|
|
738
628
|
* @default []
|
|
739
629
|
* @nonInheritable
|
|
740
630
|
*/
|
|
@@ -747,10 +637,6 @@ export interface EnvironmentNonInheritable {
|
|
|
747
637
|
environment?: string;
|
|
748
638
|
/** Optionally, the entrypoint (named export) of the service to bind to. */
|
|
749
639
|
entrypoint?: string;
|
|
750
|
-
/** Optional properties that will be made available to the service via ctx.props. */
|
|
751
|
-
props?: Record<string, unknown>;
|
|
752
|
-
/** Whether the service binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
753
|
-
experimental_remote?: boolean;
|
|
754
640
|
}[] | undefined;
|
|
755
641
|
/**
|
|
756
642
|
* Specifies analytics engine datasets that are bound to this Worker environment.
|
|
@@ -758,8 +644,6 @@ export interface EnvironmentNonInheritable {
|
|
|
758
644
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
759
645
|
* and so must be specified in every named environment.
|
|
760
646
|
*
|
|
761
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
|
|
762
|
-
*
|
|
763
647
|
* @default []
|
|
764
648
|
* @nonInheritable
|
|
765
649
|
*/
|
|
@@ -775,15 +659,11 @@ export interface EnvironmentNonInheritable {
|
|
|
775
659
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
776
660
|
* and so must be specified in every named environment.
|
|
777
661
|
*
|
|
778
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
|
|
779
|
-
*
|
|
780
662
|
* @default {}
|
|
781
663
|
* @nonInheritable
|
|
782
664
|
*/
|
|
783
665
|
browser: {
|
|
784
666
|
binding: string;
|
|
785
|
-
/** Whether the Browser binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
786
|
-
experimental_remote?: boolean;
|
|
787
667
|
} | undefined;
|
|
788
668
|
/**
|
|
789
669
|
* Binding to the AI project.
|
|
@@ -791,32 +671,12 @@ export interface EnvironmentNonInheritable {
|
|
|
791
671
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
792
672
|
* and so must be specified in every named environment.
|
|
793
673
|
*
|
|
794
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
|
|
795
|
-
*
|
|
796
674
|
* @default {}
|
|
797
675
|
* @nonInheritable
|
|
798
676
|
*/
|
|
799
677
|
ai: {
|
|
800
678
|
binding: string;
|
|
801
679
|
staging?: boolean;
|
|
802
|
-
/** Whether the AI binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
803
|
-
experimental_remote?: boolean;
|
|
804
|
-
} | undefined;
|
|
805
|
-
/**
|
|
806
|
-
* Binding to Cloudflare Images
|
|
807
|
-
*
|
|
808
|
-
* NOTE: This field is not automatically inherited from the top level environment,
|
|
809
|
-
* and so must be specified in every named environment.
|
|
810
|
-
*
|
|
811
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#images
|
|
812
|
-
*
|
|
813
|
-
* @default {}
|
|
814
|
-
* @nonInheritable
|
|
815
|
-
*/
|
|
816
|
-
images: {
|
|
817
|
-
binding: string;
|
|
818
|
-
/** Whether the Images binding should be remote or not (only available under `--x-remote-bindings`) */
|
|
819
|
-
experimental_remote?: boolean;
|
|
820
680
|
} | undefined;
|
|
821
681
|
/**
|
|
822
682
|
* Binding to the Worker Version's metadata
|
|
@@ -870,8 +730,6 @@ export interface EnvironmentNonInheritable {
|
|
|
870
730
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
871
731
|
* and so must be specified in every named environment.
|
|
872
732
|
*
|
|
873
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
|
|
874
|
-
*
|
|
875
733
|
* @default []
|
|
876
734
|
* @nonInheritable
|
|
877
735
|
*/
|
|
@@ -880,8 +738,6 @@ export interface EnvironmentNonInheritable {
|
|
|
880
738
|
binding: string;
|
|
881
739
|
/** The uuid of the uploaded mTLS certificate */
|
|
882
740
|
certificate_id: string;
|
|
883
|
-
/** Whether the mtls fetcher should be remote or not (only available under `--x-remote-bindings`) */
|
|
884
|
-
experimental_remote?: boolean;
|
|
885
741
|
}[];
|
|
886
742
|
/**
|
|
887
743
|
* Specifies a list of Tail Workers that are bound to this Worker environment
|
|
@@ -899,8 +755,6 @@ export interface EnvironmentNonInheritable {
|
|
|
899
755
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
900
756
|
* and so must be specified in every named environment.
|
|
901
757
|
*
|
|
902
|
-
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
|
|
903
|
-
*
|
|
904
758
|
* @default []
|
|
905
759
|
* @nonInheritable
|
|
906
760
|
*/
|
|
@@ -911,8 +765,6 @@ export interface EnvironmentNonInheritable {
|
|
|
911
765
|
namespace: string;
|
|
912
766
|
/** Details about the outbound Worker which will handle outbound requests from your namespace */
|
|
913
767
|
outbound?: DispatchNamespaceOutbound;
|
|
914
|
-
/** Whether the Dispatch Namespace should be remote or not (only available under `--x-remote-bindings`) */
|
|
915
|
-
experimental_remote?: boolean;
|
|
916
768
|
}[];
|
|
917
769
|
/**
|
|
918
770
|
* Specifies list of Pipelines bound to this Worker environment
|
|
@@ -929,38 +781,68 @@ export interface EnvironmentNonInheritable {
|
|
|
929
781
|
/** Name of the Pipeline to bind */
|
|
930
782
|
pipeline: string;
|
|
931
783
|
}[];
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* The environment configuration properties that have been deprecated.
|
|
787
|
+
*/
|
|
788
|
+
interface EnvironmentDeprecated {
|
|
932
789
|
/**
|
|
933
|
-
*
|
|
790
|
+
* The zone ID of the zone you want to deploy to. You can find this
|
|
791
|
+
* in your domain page on the dashboard.
|
|
934
792
|
*
|
|
935
|
-
*
|
|
936
|
-
|
|
793
|
+
* @deprecated This is unnecessary since we can deduce this from routes directly.
|
|
794
|
+
*/
|
|
795
|
+
zone_id?: string;
|
|
796
|
+
/**
|
|
797
|
+
* Legacy way of defining KVNamespaces that is no longer supported.
|
|
798
|
+
*
|
|
799
|
+
* @deprecated DO NOT USE. This was a legacy bug from Wrangler v1, that we do not want to support.
|
|
800
|
+
*/
|
|
801
|
+
"kv-namespaces"?: string;
|
|
802
|
+
/**
|
|
803
|
+
* A list of services that your Worker should be bound to.
|
|
937
804
|
*
|
|
938
805
|
* @default []
|
|
939
|
-
* @
|
|
806
|
+
* @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.
|
|
940
807
|
*/
|
|
941
|
-
|
|
942
|
-
/** The binding name used to refer to the
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
|
|
808
|
+
experimental_services?: {
|
|
809
|
+
/** The binding name used to refer to the Service */
|
|
810
|
+
name: string;
|
|
811
|
+
/** The name of the Service being bound */
|
|
812
|
+
service: string;
|
|
813
|
+
/** The Service's environment */
|
|
814
|
+
environment: string;
|
|
948
815
|
}[];
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Deprecated upload configuration.
|
|
819
|
+
*/
|
|
820
|
+
export interface DeprecatedUpload {
|
|
949
821
|
/**
|
|
950
|
-
*
|
|
822
|
+
* The format of the Worker script.
|
|
951
823
|
*
|
|
952
|
-
*
|
|
953
|
-
|
|
824
|
+
* @deprecated We infer the format automatically now.
|
|
825
|
+
*/
|
|
826
|
+
format?: "modules" | "service-worker";
|
|
827
|
+
/**
|
|
828
|
+
* The directory you wish to upload your Worker from,
|
|
829
|
+
* relative to the Wrangler configuration file.
|
|
954
830
|
*
|
|
955
|
-
*
|
|
956
|
-
*
|
|
831
|
+
* Defaults to the directory containing the Wrangler configuration file.
|
|
832
|
+
*
|
|
833
|
+
* @deprecated
|
|
957
834
|
*/
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
835
|
+
dir?: string;
|
|
836
|
+
/**
|
|
837
|
+
* The path to the Worker script, relative to `upload.dir`.
|
|
838
|
+
*
|
|
839
|
+
* @deprecated This will be replaced by a command line argument.
|
|
840
|
+
*/
|
|
841
|
+
main?: string;
|
|
842
|
+
/**
|
|
843
|
+
* @deprecated This is now defined at the top level `rules` field.
|
|
844
|
+
*/
|
|
845
|
+
rules?: Environment["rules"];
|
|
964
846
|
}
|
|
965
847
|
/**
|
|
966
848
|
* The raw environment configuration that we read from the config file.
|
|
@@ -968,7 +850,7 @@ export interface EnvironmentNonInheritable {
|
|
|
968
850
|
* All the properties are optional, and will be replaced with defaults in the configuration that
|
|
969
851
|
* is used in the rest of the codebase.
|
|
970
852
|
*/
|
|
971
|
-
export type RawEnvironment = Partial<Environment
|
|
853
|
+
export type RawEnvironment = Partial<Environment> & EnvironmentDeprecated;
|
|
972
854
|
/**
|
|
973
855
|
* A bundling resolver rule, defining the modules type for paths that match the specified globs.
|
|
974
856
|
*/
|
|
@@ -980,7 +862,7 @@ export type Rule = {
|
|
|
980
862
|
/**
|
|
981
863
|
* The possible types for a `Rule`.
|
|
982
864
|
*/
|
|
983
|
-
export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement";
|
|
865
|
+
export type ConfigModuleRuleType = "ESModule" | "CommonJS" | "CompiledWasm" | "Text" | "Data" | "PythonModule" | "PythonRequirement" | "NodeJsCompatModule";
|
|
984
866
|
export type TailConsumer = {
|
|
985
867
|
/** The name of the service tail events will be forwarded to. */
|
|
986
868
|
service: string;
|
|
@@ -1009,11 +891,12 @@ export type Assets = {
|
|
|
1009
891
|
/** How to handle requests that do not match an asset. */
|
|
1010
892
|
not_found_handling?: "single-page-application" | "404-page" | "none";
|
|
1011
893
|
/**
|
|
1012
|
-
*
|
|
1013
|
-
*
|
|
1014
|
-
*
|
|
1015
|
-
|
|
1016
|
-
run_worker_first
|
|
894
|
+
* If true, route every request to the User Worker, whether or not it matches an asset.
|
|
895
|
+
* If false, then respond to requests that match an asset with that asset directly.
|
|
896
|
+
* */
|
|
897
|
+
run_worker_first?: boolean;
|
|
898
|
+
/** Deprecated; Inverse of run_worker_first. Should use run_worker_first instead */
|
|
899
|
+
experimental_serve_directly?: boolean;
|
|
1017
900
|
};
|
|
1018
901
|
export interface Observability {
|
|
1019
902
|
/** If observability is enabled for this Worker */
|
|
@@ -1028,11 +911,4 @@ export interface Observability {
|
|
|
1028
911
|
invocation_logs?: boolean;
|
|
1029
912
|
};
|
|
1030
913
|
}
|
|
1031
|
-
export type DockerConfiguration = {
|
|
1032
|
-
/** Socket used by miniflare to communicate with Docker */
|
|
1033
|
-
socketPath: string;
|
|
1034
|
-
};
|
|
1035
|
-
export type ContainerEngine = {
|
|
1036
|
-
localDocker: DockerConfiguration;
|
|
1037
|
-
} | string;
|
|
1038
914
|
export {};
|
package/package.json
CHANGED