Vite build works locally, but fails on cloudflare

I recently added around 100 5Mb images to my project, which successfully builds locally, but when I try to build & deploy on pages it fails. What's interesting is that the failure is not the same each time. Sometimes it fails to resolve different image paths.

How can I fix this?
Was this page helpful?