create-cloudflare 0.0.0-4ce7a5de → 0.0.0-4e0f6f4b

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.
Files changed (30) hide show
  1. package/dist/cli.js +25 -14
  2. package/package.json +3 -3
  3. package/templates/astro/templates/wrangler.toml +30 -28
  4. package/templates/common/js/wrangler.toml +68 -22
  5. package/templates/common/ts/wrangler.toml +68 -22
  6. package/templates/hello-world/js/wrangler.toml +68 -22
  7. package/templates/hello-world/ts/wrangler.toml +68 -22
  8. package/templates/hello-world-durable-object/js/wrangler.toml +69 -23
  9. package/templates/hello-world-durable-object/ts/wrangler.toml +68 -21
  10. package/templates/next/README.md +11 -1
  11. package/templates/next/app/js/app/api/hello/route.js +1 -1
  12. package/templates/next/app/ts/app/api/hello/route.ts +1 -1
  13. package/templates/next/c3.ts +23 -4
  14. package/templates/next/env.d.ts +3 -5
  15. package/templates/next/pages/js/pages/api/hello.js +1 -1
  16. package/templates/next/pages/ts/pages/api/hello.ts +1 -1
  17. package/templates/next/wrangler.toml +29 -32
  18. package/templates/nuxt/templates/worker-configuration.d.ts +3 -2
  19. package/templates/nuxt/templates/wrangler.toml +30 -28
  20. package/templates/queues/js/wrangler.toml +85 -2
  21. package/templates/queues/ts/wrangler.toml +85 -2
  22. package/templates/qwik/templates/worker-configuration.d.ts +3 -2
  23. package/templates/qwik/templates/wrangler.toml +30 -28
  24. package/templates/remix/c3.ts +1 -1
  25. package/templates/remix/templates/worker-configuration.d.ts +3 -2
  26. package/templates/remix/templates/wrangler.toml +30 -28
  27. package/templates/scheduled/js/wrangler.toml +94 -0
  28. package/templates/scheduled/ts/wrangler.toml +94 -0
  29. package/templates/svelte/js/wrangler.toml +30 -28
  30. package/templates/svelte/ts/wrangler.toml +30 -28
package/dist/cli.js CHANGED
@@ -3810,8 +3810,10 @@ ${grayBar} ${msg}`);
3810
3810
  }
3811
3811
  clearLoop();
3812
3812
  } else {
3813
- logUpdate2(`
3813
+ if (msg) {
3814
+ logUpdate2(`
3814
3815
  ${grayBar} ${msg}`);
3816
+ }
3815
3817
  newline();
3816
3818
  }
3817
3819
  }
@@ -3851,7 +3853,7 @@ var init_args = __esm({
3851
3853
  var version, devDependencies;
3852
3854
  var init_package = __esm({
3853
3855
  "package.json"() {
3854
- version = "0.0.0-4ce7a5de";
3856
+ version = "0.0.0-4e0f6f4b";
3855
3857
  devDependencies = {
3856
3858
  "@babel/parser": "^7.21.3",
3857
3859
  "@babel/types": "^7.21.4",
@@ -24556,19 +24558,19 @@ var init_package2 = __esm({
24556
24558
  "additionally it also contains a map that maps frameworks to their respective clis"
24557
24559
  ],
24558
24560
  dependencies: {
24559
- "create-astro": "4.7.3",
24561
+ "create-astro": "4.7.4",
24560
24562
  "@angular/create": "17.2.3",
24561
24563
  "create-docusaurus": "3.1.1",
24562
24564
  "create-hono": "0.5.0",
24563
24565
  "create-next-app": "14.1.0",
24564
24566
  "create-qwik": "1.4.5",
24565
24567
  "create-react-app": "5.0.1",
24566
- "create-remix": "2.8.0",
24567
- "create-solid": "0.5.3",
24568
- "create-svelte": "6.0.9",
24568
+ "create-remix": "2.8.1",
24569
+ "create-solid": "0.5.5",
24570
+ "create-svelte": "6.0.10",
24569
24571
  "create-vue": "3.9.2",
24570
24572
  gatsby: "5.13.3",
24571
- nuxi: "3.10.1"
24573
+ nuxi: "3.11.1"
24572
24574
  },
24573
24575
  frameworkCliMap: {
24574
24576
  angular: "@angular/create",
@@ -70807,10 +70809,16 @@ var init_c36 = __esm({
70807
70809
  generate6 = async (ctx) => {
70808
70810
  const projectName = ctx.project.name;
70809
70811
  await runFrameworkGenerator(ctx, [projectName]);
70810
- copyFile(
70811
- (0, import_path13.join)(getTemplatePath(ctx), "wrangler.toml"),
70812
- (0, import_path13.join)(ctx.project.path, "wrangler.toml")
70812
+ const wranglerToml = readFile((0, import_path13.join)(getTemplatePath(ctx), "wrangler.toml"));
70813
+ const newTomlContent = wranglerToml.replace(
70814
+ /#\s+\[\[kv_namespaces\]\]\n#\s+binding\s+=\s+"MY_KV_NAMESPACE"\n#\s+id\s+=\s+"[a-zA-Z0-9]+?"/,
70815
+ ($1) => `# KV Example:
70816
+ ${$1}`
70813
70817
  );
70818
+ if (!/# KV Example/.test(newTomlContent)) {
70819
+ crash("Failed to properly generate the wrangler.toml file");
70820
+ }
70821
+ writeFile2((0, import_path13.join)(ctx.project.path, "wrangler.toml"), newTomlContent);
70814
70822
  updateStatus("Created wrangler.toml file");
70815
70823
  };
70816
70824
  updateNextConfig = () => {
@@ -70941,7 +70949,7 @@ var init_c36 = __esm({
70941
70949
  }
70942
70950
  }
70943
70951
  },
70944
- transformPackageJson: async () => {
70952
+ transformPackageJson: async (_2, ctx) => {
70945
70953
  const isNpm = npm4 === "npm";
70946
70954
  const isBun = npm4 === "bun";
70947
70955
  const isNpmOrBun = isNpm || isBun;
@@ -70953,7 +70961,10 @@ var init_c36 = __esm({
70953
70961
  scripts: {
70954
70962
  "pages:build": `${pmCommand} ${nextOnPagesCommand}`,
70955
70963
  preview: `${pagesBuildRunCommand} && wrangler pages dev .vercel/output/static`,
70956
- deploy: `${pagesBuildRunCommand} && wrangler pages deploy .vercel/output/static`
70964
+ deploy: `${pagesBuildRunCommand} && wrangler pages deploy .vercel/output/static`,
70965
+ ...usesTypescript(ctx) && {
70966
+ "build-cf-types": `wrangler types --env-interface CloudflareEnv env.d.ts`
70967
+ }
70957
70968
  }
70958
70969
  };
70959
70970
  },
@@ -71257,7 +71268,7 @@ var init_c310 = __esm({
71257
71268
  await runFrameworkGenerator(ctx, [
71258
71269
  ctx.project.name,
71259
71270
  "--template",
71260
- "https://github.com/remix-run/remix/tree/main/templates/vite-cloudflare"
71271
+ "https://github.com/remix-run/remix/tree/main/templates/cloudflare"
71261
71272
  ]);
71262
71273
  logRaw("");
71263
71274
  };
@@ -77092,7 +77103,7 @@ init_command();
77092
77103
  init_packageManagers();
77093
77104
 
77094
77105
  // ../wrangler/package.json
77095
- var version2 = "3.34.2";
77106
+ var version2 = "3.36.0";
77096
77107
 
77097
77108
  // src/git.ts
77098
77109
  init_package();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cloudflare",
3
- "version": "0.0.0-4ce7a5de",
3
+ "version": "0.0.0-4e0f6f4b",
4
4
  "description": "A CLI for creating and deploying new applications to Cloudflare.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -67,8 +67,8 @@
67
67
  "yargs": "^17.7.1",
68
68
  "yarn": "^1.22.19",
69
69
  "@cloudflare/cli": "1.1.1",
70
- "@cloudflare/workers-tsconfig": "0.0.0",
71
- "wrangler": "3.34.2"
70
+ "wrangler": "3.36.0",
71
+ "@cloudflare/workers-tsconfig": "0.0.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=18.14.1"
@@ -3,48 +3,50 @@ compatibility_date = "<TBD>"
3
3
 
4
4
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
5
5
  # Note: Use secrets to store sensitive data.
6
- # Docs: https://developers.cloudflare.com/workers/platform/environment-variables
6
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#environment-variables
7
7
  # [vars]
8
8
  # MY_VARIABLE = "production_value"
9
9
 
10
+ # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
11
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#workers-ai
12
+ # [ai]
13
+ # binding = "AI"
14
+
15
+ # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
16
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#d1-databases
17
+ # [[d1_databases]]
18
+ # binding = "MY_DB"
19
+ # database_name = "my-database"
20
+ # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
21
+
22
+ # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
23
+ # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
24
+ # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
25
+ # [[durable_objects.bindings]]
26
+ # name = "MY_DURABLE_OBJECT"
27
+ # class_name = "MyDurableObject"
28
+ # script_name = 'my-durable-object'
29
+
10
30
  # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
11
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
31
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#kv-namespaces
12
32
  # [[kv_namespaces]]
13
33
  # binding = "MY_KV_NAMESPACE"
14
34
  # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
15
35
 
16
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
17
- # Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
18
- # [[r2_buckets]]
19
- # binding = "MY_BUCKET"
20
- # bucket_name = "my-bucket"
21
-
22
36
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
23
- # Docs: https://developers.cloudflare.com/queues/get-started
37
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#queue-producers
24
38
  # [[queues.producers]]
25
39
  # binding = "MY_QUEUE"
26
40
  # queue = "my-queue"
27
41
 
28
- # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
29
- # Docs: https://developers.cloudflare.com/queues/get-started
30
- # [[queues.consumers]]
31
- # queue = "my-queue"
42
+ # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
43
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#r2-buckets
44
+ # [[r2_buckets]]
45
+ # binding = "MY_BUCKET"
46
+ # bucket_name = "my-bucket"
32
47
 
33
48
  # Bind another Worker service. Use this binding to call another Worker without network overhead.
34
- # Docs: https://developers.cloudflare.com/workers/platform/services
49
+ # Docs: https://developers.cloudflare.com/pages/functions/bindings/#service-bindings
35
50
  # [[services]]
36
51
  # binding = "MY_SERVICE"
37
- # service = "my-service"
38
-
39
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
40
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
41
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
42
- # [[durable_objects.bindings]]
43
- # name = "MY_DURABLE_OBJECT"
44
- # class_name = "MyDurableObject"
45
-
46
- # Durable Object migrations.
47
- # Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
48
- # [[migrations]]
49
- # tag = "v1"
50
- # new_classes = ["MyDurableObject"]
52
+ # service = "my-service"
@@ -4,48 +4,94 @@ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
7
- # Docs: https://developers.cloudflare.com/workers/platform/environment-variables
7
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
8
8
  # [vars]
9
9
  # MY_VARIABLE = "production_value"
10
10
 
11
+ # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
12
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
13
+ # [ai]
14
+ # binding = "AI"
15
+
16
+ # Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
17
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
18
+ # [[analytics_engine_datasets]]
19
+ # binding = "MY_DATASET"
20
+
21
+ # Bind a headless browser instance running on Cloudflare's global network.
22
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
23
+ # [browser]
24
+ # binding = "MY_BROWSER"
25
+
26
+ # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
27
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
28
+ # [[d1_databases]]
29
+ # binding = "MY_DB"
30
+ # database_name = "my-database"
31
+ # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
32
+
33
+ # Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
34
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
35
+ # [[dispatch_namespaces]]
36
+ # binding = "MY_DISPATCHER"
37
+ # namespace = "my-namespace"
38
+
39
+ # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
40
+ # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
41
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
42
+ # [[durable_objects.bindings]]
43
+ # name = "MY_DURABLE_OBJECT"
44
+ # class_name = "MyDurableObject"
45
+
46
+ # Durable Object migrations.
47
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
48
+ # [[migrations]]
49
+ # tag = "v1"
50
+ # new_classes = ["MyDurableObject"]
51
+
52
+ # Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
53
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
54
+ # [[hyperdrive]]
55
+ # binding = "MY_HYPERDRIVE"
56
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
57
+
11
58
  # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
12
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
59
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
13
60
  # [[kv_namespaces]]
14
61
  # binding = "MY_KV_NAMESPACE"
15
62
  # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
16
63
 
17
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
18
- # Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
19
- # [[r2_buckets]]
20
- # binding = "MY_BUCKET"
21
- # bucket_name = "my-bucket"
64
+ # Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
65
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
66
+ # [[mtls_certificates]]
67
+ # binding = "MY_CERTIFICATE"
68
+ # certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
22
69
 
23
70
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
24
- # Docs: https://developers.cloudflare.com/queues/get-started
71
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
25
72
  # [[queues.producers]]
26
73
  # binding = "MY_QUEUE"
27
74
  # queue = "my-queue"
28
75
 
29
76
  # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
30
- # Docs: https://developers.cloudflare.com/queues/get-started
77
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
31
78
  # [[queues.consumers]]
32
79
  # queue = "my-queue"
33
80
 
81
+ # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
82
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
83
+ # [[r2_buckets]]
84
+ # binding = "MY_BUCKET"
85
+ # bucket_name = "my-bucket"
86
+
34
87
  # Bind another Worker service. Use this binding to call another Worker without network overhead.
35
- # Docs: https://developers.cloudflare.com/workers/platform/services
88
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
36
89
  # [[services]]
37
90
  # binding = "MY_SERVICE"
38
91
  # service = "my-service"
39
92
 
40
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
42
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
43
- # [[durable_objects.bindings]]
44
- # name = "MY_DURABLE_OBJECT"
45
- # class_name = "MyDurableObject"
46
-
47
- # Durable Object migrations.
48
- # Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
49
- # [[migrations]]
50
- # tag = "v1"
51
- # new_classes = ["MyDurableObject"]
93
+ # Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
94
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
95
+ # [[vectorize]]
96
+ # binding = "MY_INDEX"
97
+ # index_name = "my-index"
@@ -4,48 +4,94 @@ compatibility_date = "<TBD>"
4
4
 
5
5
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6
6
  # Note: Use secrets to store sensitive data.
7
- # Docs: https://developers.cloudflare.com/workers/platform/environment-variables
7
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
8
8
  # [vars]
9
9
  # MY_VARIABLE = "production_value"
10
10
 
11
+ # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
12
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
13
+ # [ai]
14
+ # binding = "AI"
15
+
16
+ # Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
17
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
18
+ # [[analytics_engine_datasets]]
19
+ # binding = "MY_DATASET"
20
+
21
+ # Bind a headless browser instance running on Cloudflare's global network.
22
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
23
+ # [browser]
24
+ # binding = "MY_BROWSER"
25
+
26
+ # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
27
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
28
+ # [[d1_databases]]
29
+ # binding = "MY_DB"
30
+ # database_name = "my-database"
31
+ # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
32
+
33
+ # Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
34
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
35
+ # [[dispatch_namespaces]]
36
+ # binding = "MY_DISPATCHER"
37
+ # namespace = "my-namespace"
38
+
39
+ # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
40
+ # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
41
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
42
+ # [[durable_objects.bindings]]
43
+ # name = "MY_DURABLE_OBJECT"
44
+ # class_name = "MyDurableObject"
45
+
46
+ # Durable Object migrations.
47
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
48
+ # [[migrations]]
49
+ # tag = "v1"
50
+ # new_classes = ["MyDurableObject"]
51
+
52
+ # Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
53
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
54
+ # [[hyperdrive]]
55
+ # binding = "MY_HYPERDRIVE"
56
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
57
+
11
58
  # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
12
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
59
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
13
60
  # [[kv_namespaces]]
14
61
  # binding = "MY_KV_NAMESPACE"
15
62
  # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
16
63
 
17
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
18
- # Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
19
- # [[r2_buckets]]
20
- # binding = "MY_BUCKET"
21
- # bucket_name = "my-bucket"
64
+ # Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
65
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
66
+ # [[mtls_certificates]]
67
+ # binding = "MY_CERTIFICATE"
68
+ # certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
22
69
 
23
70
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
24
- # Docs: https://developers.cloudflare.com/queues/get-started
71
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
25
72
  # [[queues.producers]]
26
73
  # binding = "MY_QUEUE"
27
74
  # queue = "my-queue"
28
75
 
29
76
  # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
30
- # Docs: https://developers.cloudflare.com/queues/get-started
77
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
31
78
  # [[queues.consumers]]
32
79
  # queue = "my-queue"
33
80
 
81
+ # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
82
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
83
+ # [[r2_buckets]]
84
+ # binding = "MY_BUCKET"
85
+ # bucket_name = "my-bucket"
86
+
34
87
  # Bind another Worker service. Use this binding to call another Worker without network overhead.
35
- # Docs: https://developers.cloudflare.com/workers/platform/services
88
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
36
89
  # [[services]]
37
90
  # binding = "MY_SERVICE"
38
91
  # service = "my-service"
39
92
 
40
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
42
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
43
- # [[durable_objects.bindings]]
44
- # name = "MY_DURABLE_OBJECT"
45
- # class_name = "MyDurableObject"
46
-
47
- # Durable Object migrations.
48
- # Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
49
- # [[migrations]]
50
- # tag = "v1"
51
- # new_classes = ["MyDurableObject"]
93
+ # Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
94
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
95
+ # [[vectorize]]
96
+ # binding = "MY_INDEX"
97
+ # index_name = "my-index"
@@ -5,48 +5,94 @@ compatibility_flags = ["nodejs_compat"]
5
5
 
6
6
  # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
7
7
  # Note: Use secrets to store sensitive data.
8
- # Docs: https://developers.cloudflare.com/workers/platform/environment-variables
8
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
9
9
  # [vars]
10
10
  # MY_VARIABLE = "production_value"
11
11
 
12
+ # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
13
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
14
+ # [ai]
15
+ # binding = "AI"
16
+
17
+ # Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
18
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
19
+ # [[analytics_engine_datasets]]
20
+ # binding = "MY_DATASET"
21
+
22
+ # Bind a headless browser instance running on Cloudflare's global network.
23
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering
24
+ # [browser]
25
+ # binding = "MY_BROWSER"
26
+
27
+ # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
28
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases
29
+ # [[d1_databases]]
30
+ # binding = "MY_DB"
31
+ # database_name = "my-database"
32
+ # database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
33
+
34
+ # Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers.
35
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms
36
+ # [[dispatch_namespaces]]
37
+ # binding = "MY_DISPATCHER"
38
+ # namespace = "my-namespace"
39
+
40
+ # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41
+ # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
42
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects
43
+ # [[durable_objects.bindings]]
44
+ # name = "MY_DURABLE_OBJECT"
45
+ # class_name = "MyDurableObject"
46
+
47
+ # Durable Object migrations.
48
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations
49
+ # [[migrations]]
50
+ # tag = "v1"
51
+ # new_classes = ["MyDurableObject"]
52
+
53
+ # Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers.
54
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive
55
+ # [[hyperdrive]]
56
+ # binding = "MY_HYPERDRIVE"
57
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
58
+
12
59
  # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
13
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
60
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
14
61
  # [[kv_namespaces]]
15
62
  # binding = "MY_KV_NAMESPACE"
16
63
  # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
17
64
 
18
- # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
19
- # Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
20
- # [[r2_buckets]]
21
- # binding = "MY_BUCKET"
22
- # bucket_name = "my-bucket"
65
+ # Bind an mTLS certificate. Use to present a client certificate when communicating with another service.
66
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates
67
+ # [[mtls_certificates]]
68
+ # binding = "MY_CERTIFICATE"
69
+ # certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
23
70
 
24
71
  # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
25
- # Docs: https://developers.cloudflare.com/queues/get-started
72
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
26
73
  # [[queues.producers]]
27
74
  # binding = "MY_QUEUE"
28
75
  # queue = "my-queue"
29
76
 
30
77
  # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
31
- # Docs: https://developers.cloudflare.com/queues/get-started
78
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues
32
79
  # [[queues.consumers]]
33
80
  # queue = "my-queue"
34
81
 
82
+ # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
83
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
84
+ # [[r2_buckets]]
85
+ # binding = "MY_BUCKET"
86
+ # bucket_name = "my-bucket"
87
+
35
88
  # Bind another Worker service. Use this binding to call another Worker without network overhead.
36
- # Docs: https://developers.cloudflare.com/workers/platform/services
89
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
37
90
  # [[services]]
38
91
  # binding = "MY_SERVICE"
39
92
  # service = "my-service"
40
93
 
41
- # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
42
- # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
43
- # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
44
- # [[durable_objects.bindings]]
45
- # name = "MY_DURABLE_OBJECT"
46
- # class_name = "MyDurableObject"
47
-
48
- # Durable Object migrations.
49
- # Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
50
- # [[migrations]]
51
- # tag = "v1"
52
- # new_classes = ["MyDurableObject"]
94
+ # Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases.
95
+ # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes
96
+ # [[vectorize]]
97
+ # binding = "MY_INDEX"
98
+ # index_name = "my-index"