-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwrangler.tpl.toml
More file actions
47 lines (34 loc) · 894 Bytes
/
wrangler.tpl.toml
File metadata and controls
47 lines (34 loc) · 894 Bytes
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
45
46
47
name = "sumi-webhook-local"
vars = { ENVIRONMENT = "local" }
main = "./dist/cfworker/index.js"
no_bundle = true
compatibility_date = "2024-02-21"
logpush = true
workers_dev = true
node_compat = true
compatibility_flags = [ "nodejs_als" ]
kv_namespaces = [
{ binding = "KV", id = "{{KV_LOCAL_ID}}", preview_id = "{{KV_LOCAL_ID}}" },
]
[observability]
enabled = true
[[queues.producers]]
queue = "{{QUEUE_NAME_LOCAL}}"
binding = "MESSAGE_QUEUE"
[[queues.consumers]]
queue = "{{QUEUE_NAME_LOCAL}}"
max_batch_size = 10
max_batch_timeout = 1
[placement]
mode = "smart"
[env.prod]
name = "sumi-webhook"
vars = { ENVIRONMENT = "prod" }
kv_namespaces = [{ binding = "KV", id = "{{KV_PROD_ID}}" }]
[[env.prod.queues.producers]]
queue = "{{QUEUE_NAME_PROD}}"
binding = "MESSAGE_QUEUE"
[[env.prod.queues.consumers]]
queue = "{{QUEUE_NAME_PROD}}"
max_batch_size = 10
max_batch_timeout = 1