Because if they get bundled, what are the actual benefits of using multiple files in functions folde
Because if they get bundled, what are the actual benefits of using multiple files in functions folder over a single _workers file?
_worker.js fileresponse.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 import worker from "../src";
export default worker;response.clone()response.clone()request.clone()request.clone()new Response(response.body, response)new Request(request)