- assets html_handling drop-trailing-slash: sitemap/canonical/internal links were all 307-redirecting to the trailing-slash variant - qualify duplicate SEO titles (19 pages) with their section - strip repeated heading and markdown markers from fallback descriptions - IndexNow key file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.0 KiB
JSON
25 lines
1.0 KiB
JSON
{
|
|
// Static-assets Worker for lawsynth.dev — serves the pre-rendered docs site.
|
|
// Build with `pnpm run build:site` (emits apps/docs-site/public), deploy with
|
|
// `npx wrangler deploy`. No Worker script (`main`) is needed: the `assets`
|
|
// block alone serves the static tree. For the Cloudflare Pages flow instead,
|
|
// see apps/docs-site/wrangler.toml + DEPLOY.md.
|
|
"name": "lawsynth",
|
|
"main": "./apps/docs-site/worker.mjs",
|
|
"compatibility_date": "2025-01-01",
|
|
"assets": {
|
|
"directory": "./apps/docs-site/public",
|
|
"binding": "ASSETS",
|
|
"run_worker_first": true,
|
|
// Internal links and canonicals are slashless (/getting-started); serve
|
|
// them directly instead of 307-redirecting to /getting-started/.
|
|
"html_handling": "drop-trailing-slash"
|
|
},
|
|
// Serve at the apex (and www) — lawsynth.dev is a zone in this account, so
|
|
// Cloudflare provisions the custom domain + certificate on deploy.
|
|
"routes": [
|
|
{ "pattern": "lawsynth.dev", "custom_domain": true },
|
|
{ "pattern": "www.lawsynth.dev", "custom_domain": true }
|
|
]
|
|
}
|