workers-sdk
workers-sdk copied to clipboard
🚀 Feature Request: `wrangler pages publish` should prioritise `_worker.js` over `/functions`, if both are defined
trafficstars
Describe the solution
Currently, if a Pages project defines both a functions directory and a custom _worker.js file in the output directory, wrangler pages publish will prioritise generating and deploying a Worker based on the contents of /functions over deploying _worker.js. We want to switch that around, and make sure we always prioritise the custom _worker.js file over /functions, thus aligning the pages publish behaviour to that of Pages Advanced Mode projects