But yeah, from the perspective of a Framework author, I would generally go with a `_worker.js` file
But yeah, from the perspective of a Framework author, I would generally go with a
_worker.js file_worker.jsresponse.clone() or request.clone()) but did not read the body of both branches. This is wasteful, as it forces the system to buffer the entire stream of data in memory, rather than streaming it through. This may cause your worker to be unexpectedly terminated for going over the memory limit. If you only meant to copy the request or response headers and metadata (e.g. in order to be able to modify them), use the appropriate constructors instead (for instance, new Response(response.body, response), new Request(request), etc)." response.clone() or request.clone(). Can someone please explain what needs to be done in this case?_worker.js that just reexports your Worker. wrangler should autobundle for you anywaytsc at all_worker.js bundling, so you could keep the same structure, and just have _worker.js be resolve, return an error instead._routes.json generation in Astro's cloudflare adapter response.clone()response.clone()request.clone()request.clone()new Response(response.body, response)new Request(request)tschandleresolveimport worker from "../src";
export default worker;