-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
42 lines (35 loc) · 1.19 KB
/
wrangler.toml
File metadata and controls
42 lines (35 loc) · 1.19 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
name = "ucsc-markdown-proxy"
main = "src/index.js"
compatibility_date = "2023-10-30"
compatibility_flags = ["nodejs_compat"]
[[routes]]
pattern = "fetch.ucsc.website"
custom_domain = true
# Import .css files as text strings
[[rules]]
type = "Text"
globs = ["**/*.css"]
[ai]
binding = "AI" # i.e. available in your Worker on env.AI
[observability]
enabled = false
head_sampling_rate = 1
[observability.logs]
enabled = true
head_sampling_rate = 1
persist = true
invocation_logs = true
[observability.traces]
enabled = false
persist = true
head_sampling_rate = 1
[vars]
# Change this to the domain you want to whitelist
WHITELISTED_DOMAIN = "news.ucsc.edu"
# CSS selector passed to AI.toMarkdown to select which content to convert (e.g. ".entry-content", "article")
# Leave empty to convert the full page
CSS_SELECTOR = ".entry-content"
# Comma-separated HTML ids to strip from proxied content before conversion
REMOVE_IDS = ""
# Comma-separated HTML classes to strip from proxied content before conversion
REMOVE_CLASSES = "header-region, ucsc-post-header-block__breadcrumb, ucsc-post-header-block__eyebrow,ucsc-press-inquiries-block, ucsc-post-terms-wrapper, ucsc-social-sharing-wrapper, ucsc-related-stories-block"