Next.js Discord

Discord Forum

Getting on Vercel "Error: Body exceeded 50000kb limit" without any context.

Unanswered
Bee posted this in #help-forum
Open in Discord
BeeOP
Hello, my builds are failing, and all I get is a message saying, "Error: Body exceeded 50000kb limit".

I did some googling, and the only issues/answers I found that might be related were issues with a body exceeding the 1m limit (a different error message, but I thought it might be the same). I implemented that solution to an API endpoint I created but still got the error.

Here is the code I added to the API:
export const config = { api: { bodyParser: { sizeLimit: "100mb" } } };

Any suggestions?

1 Reply

100MB is too large. you might want to upload files to S3 directly with signed url.