在 CloudFlare Pages 上部署 NextJS 应用程序时,WebPack 缓存文件超出文件大小限制

Gui*_*uix 7 webpack next.js cloudflare-pages

我正在尝试在 CloudFlare Pages 上部署我的 NextJS 应用程序。但是我在构建应用程序过程中遇到错误: Error: Asset ".next/cache/webpack/client-production/0.pack" is over the 25MiB limit. Size: 38331968 bytes

这是我的部署设置:

Build command: 
next build

Build output directory: 
/.next

Root directory: 
/

Environment variables: 
None
Run Code Online (Sandbox Code Playgroud)

CloudFlare Pages 每个文件的大小限制为 25MB,而上述文件超出了该限制。我不知道这个文件是做什么用的。有没有办法减少它的大小(或只是删除它)?