-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.example.jsonc
More file actions
56 lines (50 loc) · 1.19 KB
/
Copy pathwrangler.example.jsonc
File metadata and controls
56 lines (50 loc) · 1.19 KB
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
48
49
50
51
52
53
54
55
56
{
"name": "my-newsletter",
"main": "src/index.ts",
"compatibility_date": "2025-04-01",
"compatibility_flags": ["nodejs_compat"],
"durable_objects": {
"bindings": [
{
"name": "SUBSCRIBERS_DO",
"class_name": "OptKitDO"
}
]
},
"queues": {
"producers": [
{
"binding": "EMAIL_QUEUE",
"queue": "email-campaigns"
}
],
"consumers": [
{
"queue": "email-campaigns",
"max_batch_size": 10,
"max_retries": 3
}
]
},
// Cloudflare Email Routing — send_email binding
// Docs: https://developers.cloudflare.com/email-routing/email-workers/send-email-workers/
//
// No restrictions (can send to any verified Email Routing address):
"send_email": [
{ "name": "SEND_EMAIL" }
],
// Alternative: lock to specific destination(s)
// "send_email": [
// {
// "name": "SEND_EMAIL",
// "allowed_destination_addresses": ["subscriber1@example.com", "subscriber2@example.com"]
// }
// ],
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["OptKitDO"] }
],
"vars": {
"SENDER_EMAIL": "newsletter@yourdomain.com",
"SENDER_NAME": "My Newsletter"
}
}