site/wrangler.jsonc
zzmq.dev@gmail.com/zz / site / wrangler.jsonc
@ 1877736f
Download
Ladder Summary
- file This **wrangler.jsonc** file configures a Cloudflare Workers project named **`zzbin-docs`**: it specifies the compatibility date, points the static site assets to `./builds/current`, and defines the routing rules that bind the worker to the root of `zzmq.dev` and its `/docs` subtree (while leaving `zzbin.dev` to a separate worker). *No functions or classes are exported from this file.*
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "zzbin-docs",
"compatibility_date": "2026-10-05",
"assets": {
"directory": "./builds/current"
},
"routes": [
// zzbin.dev stays live (not torn down as part of this migration --
// that's a separate decision). Single-origin split on zzmq.dev:
// this worker owns the bare root ("/", the landing page) and
// everything under /docs/*; zz-maintainer owns the rest (/explore,
// /login, /<owner>/<repo>, ...) via its own zzmq.dev/* route.
// Both are classic routes, not custom_domain (custom_domain claims
// a whole hostname exclusively, which doesn't work when two
// workers share one zone by path) -- Cloudflare resolves the more
// specific pattern over the wildcard.
{ "pattern": "zzbin.dev", "custom_domain": true },
{ "pattern": "zzmq.dev/", "zone_name": "zzmq.dev" },
// "/docs/*" doesn't match "/docs" with no trailing slash -- the
// exact route below covers that so the _redirects rule (which
// sends it to /docs/overview/) actually gets a chance to run.
{ "pattern": "zzmq.dev/docs", "zone_name": "zzmq.dev" },
{ "pattern": "zzmq.dev/docs/*", "zone_name": "zzmq.dev" }
]
}