Cloudflare Pages rejects project uploads containing minified "worker.js"
hi everyone. i am experiencing a very strange and unprecedented thing when i try to upload a project to my pages. When i upload a project that contains a minified "_worker.js" i get a 403 error. but when the "_worker.js" is not minified it works. Why is this happening? has anyone else experienced the same thing? it took me hours just to find the source of this problem and it turns out it is caused by a very trivial and "strange" issue, which has never happened before. i am using esbuild and here is the command:
esbuild ./dist/_worker.js --bundle --format=esm --platform=node --outdir=dist --allow-overwrite --legal-comments=none --minify
0 Replies