-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathwrangler.toml
More file actions
65 lines (54 loc) · 1.5 KB
/
wrangler.toml
File metadata and controls
65 lines (54 loc) · 1.5 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
name = "cdnjs-api-worker"
main = "src/index.ts"
send_metrics = false
compatibility_date = "2022-10-31"
compatibility_flags = [ "nodejs_als" ]
kv_namespaces = [ { binding = "CACHE" } ]
[observability.logs]
enabled = true
head_sampling_rate = 1
invocation_logs = false
[observability.traces]
enabled = true
head_sampling_rate = 1
[vars]
DISABLE_LOGGING = false
DISABLE_CACHING = false
METADATA_BASE = ""
SENTRY_DSN = ""
SENTRY_RELEASE = ""
SENTRY_ENVIRONMENT = "development"
[env.staging]
route = { pattern = "api.cdnjs.dev/*", zone_name = "cdnjs.dev" }
kv_namespaces = [ { binding = "CACHE" } ]
[env.staging.observability.logs]
enabled = true
head_sampling_rate = 1
invocation_logs = false
[env.staging.observability.traces]
enabled = true
head_sampling_rate = 1
[env.staging.vars]
DISABLE_LOGGING = true
DISABLE_CACHING = false
METADATA_BASE = ""
SENTRY_DSN = "" # Will be injected by build pipeline
SENTRY_RELEASE = "" # Will be injected by build pipeline
SENTRY_ENVIRONMENT = "staging"
[env.production]
route = { pattern = "api.cdnjs.com/*", zone_name = "cdnjs.com" }
kv_namespaces = [ { binding = "CACHE" } ]
[env.production.observability.logs]
enabled = true
head_sampling_rate = 1
invocation_logs = false
[env.production.observability.traces]
enabled = true
head_sampling_rate = 0.05
[env.production.vars]
DISABLE_LOGGING = true
DISABLE_CACHING = false
METADATA_BASE = ""
SENTRY_DSN = "" # Will be injected by build pipeline
SENTRY_RELEASE = "" # Will be injected by build pipeline
SENTRY_ENVIRONMENT = "production"