It lives outside src/site.ts because workerd rejects any non-function named export of the
entrypoint module ("Incorrect type for map entry ...") and a const there takes the whole worker
down at startup; exported functions are fine. tests/unit/runtime/route-gate.spec.ts pins it.
The inbound body ceiling.
It lives outside
src/site.tsbecause workerd rejects any non-function named export of the entrypoint module ("Incorrect type for map entry ...") and aconstthere takes the whole worker down at startup; exported functions are fine.tests/unit/runtime/route-gate.spec.tspins it.