Next.js Discord

Discord Forum

Max serverless function size of 50 MB issue

Unanswered
Baldfaced hornet posted this in #help-forum
Open in Discord
Baldfaced hornetOP
Getting the Max serverless function size of 50 MB compressed or 250 MB uncompressed reached warning on Vercel with NextJS 13.4.13

Reading through the discussions here: https://github.com/orgs/vercel/discussions/103
So far none of the answers helped.

I tried using outputFileTracingExcludes in nextConfig and excludeFiles within vercel.json

It's trying to include public/content/process folder which has blog posts and Unity builds. I've done a similar setup before on another site and haven't had any issues.

How do I tell Next to exclude the public/content folder in serverless functions?

0 Replies