-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
38 lines (31 loc) · 881 Bytes
/
wrangler.toml
File metadata and controls
38 lines (31 loc) · 881 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
name = "scope3-segments-worker"
main = "src/index.js"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
# Environment variables
[vars]
API_TIMEOUT = "200"
CACHE_TTL = "3600"
# Development environment with higher timeouts
[env.development]
name = "scope3-segments-worker-dev"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
[env.development.vars]
API_TIMEOUT = "5000"
CACHE_TTL = "3600"
# Using Cache API instead of KV for development environment
# Route handler test environment
[env.routes]
name = "scope3-segments-worker-routes"
compatibility_date = "2024-09-23"
compatibility_flags = ["nodejs_compat"]
[env.routes.vars]
API_TIMEOUT = "2000"
CACHE_TTL = "3600"
# Using Cache API instead of KV for routes environment
[observability]
enabled = true
head_sampling_rate = 1 # optional. default = 1.
[placement]
mode = "smart"