-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
44 lines (39 loc) · 1.49 KB
/
Copy pathwrangler.toml
File metadata and controls
44 lines (39 loc) · 1.49 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
name = "stellata"
main = "src/worker.ts"
# Bump deliberately when you need new runtime features; `wrangler deploy`
# logs that it's overriding whatever the dashboard has.
compatibility_date = "2026-04-22"
# Smart placement co-locates the Worker with its dominant downstream
# (Cloudflare's edge in our case — pure static-assets passthrough).
placement = { mode = "smart" }
# custom_domain = true makes wrangler auto-register the proxied DNS
# record for stellata.xyz at the apex. The zone must already exist in
# the Cloudflare account.
# NOTE: `routes` must come before [assets] — TOML scopes subsequent keys
# to whatever section precedes them.
routes = [
{ pattern = "stellata.xyz", custom_domain = true },
]
[assets]
directory = "./dist"
binding = "ASSETS"
# /v/<blob>/ share URLs aren't real asset files — serve index.html (200)
# for any unmatched path so the client decodes the blob. Without this the
# static-assets layer 404s every share link. Honored by env.ASSETS.fetch().
not_found_handling = "single-page-application"
# [observability] top-level: `head_sampling_rate` MUST stay defined
# even with enabled = false, otherwise the nested sub-sections below
# fail to load. Wrangler treats the top-level field as the default
# applied when sub-blocks omit their own rate.
[observability]
enabled = false
head_sampling_rate = 1
[observability.logs]
enabled = true
head_sampling_rate = 0.1
persist = true
invocation_logs = true
[observability.traces]
enabled = false
persist = true
head_sampling_rate = 1