-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
25 lines (25 loc) · 1.14 KB
/
Copy pathwrangler.jsonc
File metadata and controls
25 lines (25 loc) · 1.14 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
{
"$schema": "node_modules/wrangler/config-schema.json",
// bin/wrangler-locale.ts overrides this with clickhouse-docs-<locale>.
"name": "clickhouse-docs-en",
"main": "./worker/index.ts",
"compatibility_date": "2026-09-01",
"compatibility_flags": ["nodejs_compat"],
"preview_urls": true,
// Preview versions (`wrangler versions upload --preview-alias pr-<n>`) get
// *.workers.dev URLs; production is reached through the website Worker's
// Service Binding, not a route of its own.
"workers_dev": false,
"preview_urls": true,
"rules": [{ "type": "Text", "globs": ["**/__redirects"], "fallthrough": true }],
"assets": {
// The build is nested under dist/docs by bin/postbuild.ts so asset paths
// equal request paths (/docs/...). The Worker runs first only for pages,
// markdown twins and unknown paths; hashed assets and images bypass it.
"directory": "./dist",
"binding": "ASSETS",
"not_found_handling": "404-page",
"run_worker_first": ["/docs/*", "!/docs/_astro/*", "!/docs/_astro-*/*", "!/docs/images/*", "!/docs/img/*", "!/docs/nav/*", "!/docs/_nimbus/*"]
},
"observability": { "enabled": true }
}