-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
20 lines (20 loc) · 974 Bytes
/
Copy pathwrangler.jsonc
File metadata and controls
20 lines (20 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
// OpenIslands docs — static (SPA + prerender) output served as Cloudflare Workers static
// assets, fronted by a thin content-negotiation Worker (worker.ts). `vite build`
// prerenders every page, the per-page markdown (`/introduction.md`), the LLM indexes
// (`/llms.txt`, `/llms-full.txt`), and the Orama search index (`/api/search`) into
// .output/public. The Worker runs first (`run_worker_first`) and, for agents that send
// `Accept: text/markdown`, serves the prebuilt markdown at the same URL via the ASSETS
// binding; everyone else gets the prerendered site. Deploy with `pnpm deploy`.
"$schema": "node_modules/wrangler/config-schema.json",
"name": "openislands-docs",
"compatibility_date": "2026-06-22",
"main": "./worker.ts",
"assets": {
"directory": "./.output/public",
"binding": "ASSETS",
"html_handling": "auto-trailing-slash",
"not_found_handling": "single-page-application",
"run_worker_first": true
}
}