Next.js Discord

Discord Forum

Warning: Max serverless function size of 50 MB compressed or 250 MB uncompressed reached

Unanswered
Bonaparte's Gull posted this in #help-forum
Open in Discord
Bonaparte's GullOP
I'm seeing the above error message on two projects when deploying to vercel.
The issue has only just started happening, i've not changed much or installed any new deps since the last successful deployment. The majority of the large files are things outside of my control. Is anyone else seeing this issue?

3 Replies

Bonaparte's GullOP
I'm using the pages router
Bonaparte's GullOP
outputFileTracingExcludes: {
  '*': [
      './node_modules/@swc/core-linux-x64-gnu',
      './node_modules/@swc/core-linux-x64-musl',
  ],
},


this seems to fix it