ERROR Pages only supports files up to 26.2 MB in size

I was trying to build and deploy my nextjs project on pages.dev when :

12:12:45.991    Finished
12:12:45.992    Note: No functions dir at /functions found. Skipping.
12:12:45.992    Validating asset output directory
12:12:46.702    Deploying your site to Cloudflare's global network...
12:12:48.131    
12:12:48.270    ✘ [ERROR] Error: Pages only supports files up to 26.2 MB in size
12:12:48.270    
12:12:48.270      cache/webpack/client-production/0.pack is 37.1 MB in size
12:12:48.270    
12:12:48.270    
12:12:48.271    If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
12:12:48.283    Failed: upload process exited with code: 1
12:12:50.510    Failed: an internal error occurred
12:12:50.510    Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: e6bd3617-4ce9-47bc-8099-97317016f4b1
Was this page helpful?