Next.js Discord

Discord Forum

Route segments

Unanswered
Marban posted this in #help-forum
Open in Discord
I started to get this error when deploy recently
Error: Page config in /vercel/path0/app/api/transcribe/route.ts is deprecated. Replace `export const config=…` with the following:
Visit https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config for more information.

And it is talking about this
export const config = {
  api: {
    bodyParser: false,
  },
}


But in the documentation, there is no such thing about body parser. How to fix this

2 Replies

it used to work fine until recently.
https://nextjs.org/docs/messages/api-routes-response-size-limit

according to this error message docs, they suggest this way but vercel says not to use it