I'm deploying a Remix app on Cloudflare Functions/Pages using a project created with the Cloudflare CLI. After adding a new library, my application will no longer deploy. (It deploys successfully locally, but silently fails in the Cloudflare console. @Erisa helped me understand that silent failures mean the bundle size exceeds the free limits.)
I couldn't figure out lowering the bundle size, so I gave in and upgraded to Workers Paid for the 10 MB deployment limit... but deploys are still failing silently.
npx wrangler pages functions build
npx wrangler pages functions build
locally produces a 5.7 MB file, which should be well under the 10MB limit. Any tips?