Increase pages limit over 20k files

I hope you're all doing well. I'm reaching out to request an increase in the file limit for Cloudflare Pages deployments. I'm currently working on a project that involves a large number of images, and I've hit the 20,000 file limit for Cloudflare Pages deployments. The error message I'm receiving is: ✘ [ERROR] Error: Pages only supports up to 20,000 files in a deployment. Ensure you have specified your build output directory correctly. I understand that this limit is in place, but it's preventing me from deploying my project as it stands. I have already filled out the form to request an increase in the file limit, but I'm not sure how long it will take to be processed. Is there another way I can make this site work with cloudflare pages? Thank you for your help!
2 Replies
Erisa
Erisa2mo ago
it's a hard limit of the platform, it wont be raised on request you can consider storing excess files in R2 or something similar, but theres no easy answer that uses pages
jd_42.
jd_42.OP2mo ago
But they are all actual pages + the Theme. I'm also using pagefind with hugo that indexes all the pages and that makes my project to have too many pages...

Did you find this page helpful?