Repository navigation
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
36 lines (36 loc) · 1.59 KB
/
Copy pathwrangler.jsonc
File metadata and controls
36 lines (36 loc) · 1.59 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
/**
* Cloudflare Workers configuration for the HyperFormula documentation site.
*
* The asset directory is the VuePress `dist` root, not `dist/docs/hyperformula`, so
* that every document keeps the `/docs/hyperformula/` prefix it is built with (see
* `docs/.vuepress/build.config.js`): handsontable.com proxies that path here
* unchanged. `worker/index.js` resolves directory and extensionless URLs and
* redirects the documentation's former addresses; see the comment there.
*
* Deployments are driven by Workers Builds (Git integration configured in the
* Cloudflare dashboard):
* - `master` -> `npx wrangler deploy` (production)
* - other branches -> `npx wrangler versions upload` (per-branch preview URL)
*/
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "hyperformula-docs",
"compatibility_date": "2026-07-31",
"preview_urls": true,
"main": "./worker/index.js",
"assets": {
"directory": "./docs/.vuepress/dist",
"binding": "ASSETS",
// Both left at their defaults on purpose:
// - `html_handling: "none"` keeps `.html` URLs from being redirected to extensionless ones,
// - `not_found_handling: "none"` lets requests that match no asset reach `worker/index.js`.
// Any other value makes the asset router answer browser navigations itself (requests with
// `Sec-Fetch-Mode: navigate`), which would bypass the Worker and 404 every directory and
// extensionless URL. The Worker serves the 404 page instead.
"html_handling": "none",
"not_found_handling": "none"
},
"observability": {
"enabled": true
}
}