wrangler pages deploy --branch=pr123 and it will automatically wire the preview environment with URL pr123.mypage.pages.dev. I'm struggling to do the same with a worker, because the environment and routes have to be specified in wrangler.toml. I'd be fine with deploying to the same preview env (for the variables), but then I'd need the route with the slug (pr123) to be updated to always point to the correct deployment ID. There will be multiple PRs active at the same time. Thanks!


ReadableStreamBYOBReader.readAtLeast(minBytes, bufferArrayBufferView) as perReturns a promise with the next available chunk of data read into a passed-in buffer. The promise will not resolve until at least minBytes have been read.
minBytes available? A little bit of sanity would say that it would resolve with the buffer partially filled with the available bytes, rather than rejecting, but that contradicts the absolute statement "The promise will not resolve until at least minBytes have been read". Can someone confirm and perhaps update the docs?
Route pattern should not have query parameters [code: 10022]
https://developers.cloudflare.com/workers/configuration/routing/routes/
Route patterns may not contain infix wildcards or query parameters. For example, neitherexample.com/*.jpgnorexample.com/?foo=*are valid route patterns.
wrangler pages deploy --branch=pr123previewpreviewpr123.mypage.pages.devpr123ReadableStreamBYOBReader.readAtLeast(minBytes, bufferArrayBufferView)minBytes Inbound requests to your Worker. Cloudflare does not bill for subrequests you make from your Worker.example.com/*.jpgexample.com/?foo=*