error when trying to deploy next js page

deployment ID: f5eff94f-36d7-4735-987a-5ac18de2b9ea Account Id ; 26b6b614faabdb2de59be87424df61de Error; 11:21:06.541 ✘ [ERROR] Error: Pages only supports files up to 26.2 MB in size 11:21:06.541
11:21:06.542 .next/cache/webpack/server-production/0.pack is 35.8 MB in size
1 Reply
F0rce
F0rce4mo ago
Hey 🙂 The error is pretty self explanatory, thus the .next/cache/webpack/server-production/0.pack file is ~9.6 MB too big.
The maximum file size for a single Cloudflare Pages site asset is 25 MiB.
https://developers.cloudflare.com/pages/platform/limits/#file-size Just our of curiosity, why are you trying to upload the .next/cache/webpack directory to the edge network? Webpack is only used in development and when packaging the application.