Repository navigation
fix: turn off Version URLs for the API and web workers - #1388
Conversation
Those URLs serve the uploaded version with production bindings on workers.dev, outside the zone WAF. uploads-auth stays on and is gated by Cloudflare Access.
|
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 2
🚫 Excluded labels (none allowed): 1
Please check the settings in the CodeRabbit UI or the
|
In plain terms
Version URLs for the API and web workers are a second public copy of production. They use production bindings and live on
workers.dev, so the uploads.sh rate limits and WAF never see them. This turns those URLs off. Auth already sends its Version URLs through Cloudflare Access, so that worker stays as it is.What it does / what it is not
preview_urlstofalseonuploads-apianduploads-web.uploads-authonpreview_urls: true.npx wrangler preview. That path still uses the separate preview tier.How to try it
After this merges, the next production deploy of
uploads-apianduploads-webis what turns the URLs off. Until then, a current API Version URL still answersGET /health.Technical notes
There is no standing staging environment. A Version URL is the uploaded version with that worker's production bindings. The zone WAF is attached to
uploads.sh, not to*.workers.dev.Test plan
preview_urlsisfalseinapps/api/wrangler.jsoncandapps/web/wrangler.jsoncapps/auth/wrangler.jsoncstill haspreview_urls: truedocs/previews.mdno longer includes aversions uploadexample for the API or web workers