Something went wrong. Try again.
A serverless AT Protocol lexicon authority
atproto lexicon
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738{ "$schema": "./node_modules/wrangler/config-schema.json",
"name": "lexicon-authority", "main": "worker.js",
// Set this to the date you first deploy. It pins the runtime version. "compatibility_date": "2026-08-03",
// Deliberately absent: compatibility_flags, node_compat, nodejs_compat. // The serving core uses Web-standard globals only, so there is nothing to polyfill. // Also absent: every kind of binding. The Worker has no KV, no R2, no D1, no secrets.
// The DID is did:web:<this hostname>, so the authority is only ever reachable at one // name. A second origin serving the same did.json buys nothing and confuses debugging. "workers_dev": false,
// A Custom Domain creates the DNS record and provisions the certificate for you. // The hostname must be on a zone in the same Cloudflare account, and must not already // have a CNAME record. "routes": [ { "pattern": "lexicon.example.com", "custom_domain": true } ],
"observability": { "enabled": true }
// Optional: Workers Caching returns responses without invoking the Worker at all. // Safe here — its cache key includes the query string, which is what XRPC dispatches // on. See docs/DEPLOYING.md, "The query-string cache-key trap". // // "cache": { "enabled": true }}