workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: `wrangler pages publish` should prioritise `_worker.js` over `/functions`, if both are defined

Open CarmenPopoviciu opened this issue 3 years ago • 0 comments
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

CarmenPopoviciu avatar Sep 06 '22 12:09 CarmenPopoviciu