-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
54 lines (54 loc) · 1.36 KB
/
Copy pathwrangler.jsonc
File metadata and controls
54 lines (54 loc) · 1.36 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
{
// Cloudflare Workers configuration for signal-range
// Migrated from Cloudflare Pages to Workers with static assets support
"name": "signal-range",
// Compatibility date - using a recent date for latest features
"compatibility_date": "2025-11-01",
// R2 bucket bindings for large audio assets
// Buckets must be created first: wrangler r2 bucket create signal-range-assets
"r2_buckets": [
{
"binding": "ASSETS",
"bucket_name": "signal-range-assets",
"preview_bucket_name": "signal-range-assets-preview"
}
],
// Static assets configuration
// This project is assets-only (no Workers script), so we only need the assets directory
"assets": {
"directory": "./dist",
"html_handling": "force-trailing-slash",
"not_found_handling": "single-page-application"
},
"observability": {
"enabled": false,
"head_sampling_rate": 1,
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true
}
},
// Environment-specific configurations
// Deploy with: npx wrangler deploy --env production (or --env uat)
"env": {
"production": {
"name": "signal-range",
"routes": [
{
"pattern": "app.signalrange.space/*",
"zone_name": "signalrange.space"
}
]
},
"uat": {
"name": "signal-range-uat",
"routes": [
{
"pattern": "uat.signalrange.space/*",
"zone_name": "signalrange.space"
}
]
}
}
}