File tree 4 files changed +146
-6
lines changed
packages/create-cloudflare/templates
4 files changed +146
-6
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,39 @@ name = "<TBD>"
2
2
main = " src/worker.ts"
3
3
compatibility_date = " 2023-04-21"
4
4
5
- # TODO: add comments for bindings
6
- # TODO: add comments for vars
7
- # TODO: add comments for secrets
5
+ # # KV Namespace binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv
6
+ # [[kv_namespaces]]
7
+ # binding = "MY_KV_NAMESPACE"
8
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9
+
10
+ # # Durable Object binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
11
+ # [[durable_objects]]
12
+ # binding = "MY_DURABLE_OBJECT"
13
+ # class_name = "MyDurableObject"
14
+
15
+ # # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
16
+ # [[buckets]]
17
+ # binding = "MY_BUCKET"
18
+ # name = "my-bucket"
19
+ # bucket_id = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
20
+
21
+ # # Service binding - For more information: https://developers.cloudflare.com/workers/platform/services
22
+ # [[routes]]
23
+ # binding = "MY_SERVICE"
24
+ # pattern = "/api/*"
25
+ # script = "api.js"
26
+
27
+ # # Queue binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/queues
28
+ # [[queues]]
29
+ # binding = "MY_QUEUE"
30
+ # name = "my-queue"
31
+ # zone_id = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
32
+
33
+ # [env.production]
34
+ # MY_VARIABLE = "production_value"
35
+
36
+ # [env.staging]
37
+ # MY_VARIABLE = "staging_value"
38
+
39
+ # [env.shared]
40
+ # SHARED_VARIABLE = "shared_value"
Original file line number Diff line number Diff line change @@ -2,6 +2,39 @@ name = "<TBD>"
2
2
main = " src/worker.ts"
3
3
compatibility_date = " 2023-04-21"
4
4
5
- # TODO: add comments for bindings
6
- # TODO: add comments for vars
7
- # TODO: add comments for secrets
5
+ # # KV Namespace binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv
6
+ # [[kv_namespaces]]
7
+ # binding = "MY_KV_NAMESPACE"
8
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9
+
10
+ # # Durable Object binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
11
+ # [[durable_objects]]
12
+ # binding = "MY_DURABLE_OBJECT"
13
+ # class_name = "MyDurableObject"
14
+
15
+ # # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
16
+ # [[buckets]]
17
+ # binding = "MY_BUCKET"
18
+ # name = "my-bucket"
19
+ # bucket_id = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
20
+
21
+ # # Service binding - For more information: https://developers.cloudflare.com/workers/platform/services
22
+ # [[routes]]
23
+ # binding = "MY_SERVICE"
24
+ # pattern = "/api/*"
25
+ # script = "api.js"
26
+
27
+ # # Queue binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/queues
28
+ # [[queues]]
29
+ # binding = "MY_QUEUE"
30
+ # name = "my-queue"
31
+ # zone_id = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
32
+
33
+ # [env.production]
34
+ # MY_VARIABLE = "production_value"
35
+
36
+ # [env.staging]
37
+ # MY_VARIABLE = "staging_value"
38
+
39
+ # [env.shared]
40
+ # SHARED_VARIABLE = "shared_value"
Original file line number Diff line number Diff line change 1
1
name = " <TBD>"
2
2
main = " src/worker.ts"
3
3
compatibility_date = " 2023-04-21"
4
+
5
+ # # KV Namespace binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv
6
+ # [[kv_namespaces]]
7
+ # binding = "MY_KV_NAMESPACE"
8
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9
+
10
+ # # Durable Object binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
11
+ # [[durable_objects]]
12
+ # binding = "MY_DURABLE_OBJECT"
13
+ # class_name = "MyDurableObject"
14
+
15
+ # # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
16
+ # [[buckets]]
17
+ # binding = "MY_BUCKET"
18
+ # name = "my-bucket"
19
+ # bucket_id = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
20
+
21
+ # # Service binding - For more information: https://developers.cloudflare.com/workers/platform/services
22
+ # [[routes]]
23
+ # binding = "MY_SERVICE"
24
+ # pattern = "/api/*"
25
+ # script = "api.js"
26
+
27
+ # # Queue binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/queues
28
+ # [[queues]]
29
+ # binding = "MY_QUEUE"
30
+ # name = "my-queue"
31
+ # zone_id = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
32
+
33
+ # [env.production]
34
+ # MY_VARIABLE = "production_value"
35
+
36
+ # [env.staging]
37
+ # MY_VARIABLE = "staging_value"
38
+
39
+ # [env.shared]
40
+ # SHARED_VARIABLE = "shared_value"
Original file line number Diff line number Diff line change 1
1
name = " <TBD>"
2
2
main = " src/worker.ts"
3
3
compatibility_date = " 2023-04-21"
4
+
5
+ # # KV Namespace binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv
6
+ # [[kv_namespaces]]
7
+ # binding = "MY_KV_NAMESPACE"
8
+ # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9
+
10
+ # # Durable Object binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
11
+ # [[durable_objects]]
12
+ # binding = "MY_DURABLE_OBJECT"
13
+ # class_name = "MyDurableObject"
14
+
15
+ # # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
16
+ # [[buckets]]
17
+ # binding = "MY_BUCKET"
18
+ # name = "my-bucket"
19
+ # bucket_id = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
20
+
21
+ # # Service binding - For more information: https://developers.cloudflare.com/workers/platform/services
22
+ # [[routes]]
23
+ # binding = "MY_SERVICE"
24
+ # pattern = "/api/*"
25
+ # script = "api.js"
26
+
27
+ # # Queue binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/queues
28
+ # [[queues]]
29
+ # binding = "MY_QUEUE"
30
+ # name = "my-queue"
31
+ # zone_id = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
32
+
33
+ # [env.production]
34
+ # MY_VARIABLE = "production_value"
35
+
36
+ # [env.staging]
37
+ # MY_VARIABLE = "staging_value"
38
+
39
+ # [env.shared]
40
+ # SHARED_VARIABLE = "shared_value"
You can’t perform that action at this time.
0 commit comments