'script_too_large' error when uploading a static site

Hello,

I am trying to upload a large static site on workers sites (20,000 pages, about 500mb size build folder). The files upload progress seems to complete, but then I get a 400 error with the message ‘workers.api.error.script_too_large’. I have not edited the default index.js file. It also says ‘Built successfully, built project size is 11 KiB’.

When I reduced the number of site pages to around 14,000, the upload worked successfully.

Is it not possible to upload large websites? Any suggestions to fix?

Thanks