Next.js Discord

Discord Forum

api routes not excepting body more than 1MB #52457

Odorous house ant posted this in #help-forum
Open in Discord
Odorous house antOP
I am trying to build a react image uploader application with nextjs api routes.
API is throwing error whenever the request body size is more than 1MB

tried the following config, still not working
export const config = { api: { bodyParser: { sizeLimit: "25mb", }, }, }

here is the link to reproduce

0 Replies