1{2 "name": "nz",3 "main": "worker.js",4 "compatibility_date": "2026-07-15",5 // apex = api, <id>.apex = sites. Needs a proxied wildcard DNS record (* AAAA 100::).6 "routes": [7 { "pattern": "example.com", "custom_domain": true },8 { "pattern": "*.example.com/*", "zone_name": "example.com" }9 ],10 "kv_namespaces": [{ "binding": "SITES", "id": "replace-with: wrangler kv namespace create SITES" }],11 "ratelimits": [{ "name": "UNLOCK", "namespace_id": "1", "simple": { "limit": 5, "period": 60 } }],12 "vars": { "DOMAIN": "example.com", "DEFAULT_TTL": "14d" }13 // secret: wrangler secret put TOKEN14}