-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
74 lines (74 loc) · 1.64 KB
/
Copy pathwrangler.jsonc
File metadata and controls
74 lines (74 loc) · 1.64 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "emdash-demo",
"main": "./src/worker.ts",
"compatibility_date": "2026-01-14",
// disable_nodejs_process_v2 needed until unenv fix lands in Pages
// See: https://github.com/withastro/astro/issues/14511
"compatibility_flags": ["nodejs_compat", "disable_nodejs_process_v2"],
// Native Workers Caching (edge HTML in front of the Worker). No zone ID or
// Cache Purge API token. Pair with cacheCloudflare() in astro.config.mjs.
// Purge from the Worker with cache.purge() from cloudflare:workers.
"cache": {
"enabled": true,
},
// Static assets served from dist/
"routes": [
{
"pattern": "demo.emdashcms.com",
"zone_name": "demo.emdashcms.com",
"custom_domain": true,
},
],
// D1 Database binding
"d1_databases": [
{
"binding": "DB",
"database_name": "emdash_db",
},
],
// R2 bucket for media storage
"r2_buckets": [
{
"binding": "MEDIA",
"bucket_name": "emdash-media",
},
],
"queues": {
"producers": [
{
"binding": "MEDIA_USAGE_QUEUE",
"queue": "emdash-demo-media-usage",
},
],
"consumers": [
{
"queue": "emdash-demo-media-usage",
"max_batch_size": 1,
"max_batch_timeout": 0,
"max_retries": 3,
"max_concurrency": 1,
},
],
},
// Cron triggers drive general maintenance and Media Usage Queue recovery.
"triggers": {
"crons": ["* * * * *", "*/2 * * * *"],
},
// Observability
"observability": {
"enabled": true,
},
// Worker Loader for plugin sandboxing
"worker_loaders": [
{
"binding": "LOADER",
},
],
"ai_search_namespaces": [
{
"binding": "AI_SEARCH",
"namespace": "default",
},
],
}