# One Worker on Workers Paid, a docs budget and reserved ADR numbers

Four decision records: production runs on Workers Paid, docs keep compiling into the Worker within a budget, /api stays on the app's host, and the app stays one Worker with four seams that keep a split cheap.

- **Production runs on Workers Paid.** [ADR-0017](/docs/adr/0017-production-runs-on-workers-paid) states the plan the template assumes. The limits, the cost per daily user and the reason the database is the first bottleneck are on a new page, [Limits, cost and when to split](/docs/architecture/limits-and-scale). ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f))
- **Docs stay in the Worker, with a budget.** [ADR-0018](/docs/adr/0018-docs-compile-into-the-worker) answers the question ADR-0010 left open. `pnpm --filter web build` now prints the size of the docs chunk and fails above 5,500,000 B raw; `scripts/measure-worker-build.mjs` reports the chunk for the baseline and the working tree. Raise `DOCS_CHUNK_BUDGET_BYTES` in `scripts/docs-chunk.mjs` in the change that needs it. ([aba3277](https://github.com/CarlosZiegler/template-cloudflare/commit/aba32771f393bc74765f2b0bb486195e4ffba30d))
- **The API stays on the app's host.** [ADR-0019](/docs/adr/0019-api-stays-on-the-app-host): `/api/*` is never moved to another origin, so `EXPO_PUBLIC_SERVER_URL` in a shipped app never changes. ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f))
- **One Worker, four seams.** [ADR-0020](/docs/adr/0020-one-worker-and-four-seams) keeps web, API and cron in one Worker, lists the triggers that would justify a second one, and names four seams that make a later split a move. `AGENTS.md` states them as rules ("Keep the split cheap"). ([e906b15](https://github.com/CarlosZiegler/template-cloudflare/commit/e906b15c0001bb11c38e4b50b9b8a3f31312758f), [1ee4502](https://github.com/CarlosZiegler/template-cloudflare/commit/1ee450283c4fce58d7488441f834d6eb93e1a482))
- **ADR numbers.** `0001` to `0099` belong to the template; a project created from it numbers its own decisions from `0100` ([decisions](/docs/adr), [setup](/docs/development/setup)). ([1ee4502](https://github.com/CarlosZiegler/template-cloudflare/commit/1ee450283c4fce58d7488441f834d6eb93e1a482))
