-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.example.toml
44 lines (36 loc) · 1.55 KB
/
wrangler.example.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name = "fake-store-api"
main = "src/worker.ts"
# Account ID required to setup KV - For more information: https://developers.cloudflare.com/workers/wrangler/commands/#whoami
account_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
compatibility_date = "2023-05-24"
# # KV Namespace binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv
# [[kv_namespaces]]
# binding = "MY_KV_NAMESPACE"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# # preview_id is required to setup a dev environment can be same as id if u want to use prod data in dev
# preview_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# # Durable Object binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
# [[durable_objects]]
# binding = "MY_DURABLE_OBJECT"
# class_name = "MyDurableObject"
# # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
# [[buckets]]
# binding = "MY_BUCKET"
# name = "my-bucket"
# bucket_id = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
# # Service binding - For more information: https://developers.cloudflare.com/workers/platform/services
# [[routes]]
# binding = "MY_SERVICE"
# pattern = "/api/*"
# script = "api.js"
# # Queue binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/queues
# [[queues]]
# binding = "MY_QUEUE"
# name = "my-queue"
# zone_id = "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
# [env.production]
# MY_VARIABLE = "production_value"
# [env.staging]
# MY_VARIABLE = "staging_value"
# [env.shared]
# SHARED_VARIABLE = "shared_value"