Solutionunvalidated
Use the supported approach for Next.js app-route handling—e.g., switch to `formidable` (as suggested) to handle multipart uploads and read the file without relying on the deprecated `bodyParser.sizeLimit` config. Alternatively, move the endpoint to the `pages` directory if you need to use `export const config` bodyParser settings there.
02c25a98-2790-497e-bdd1-9b8be9742147
Use the supported approach for Next.js app-route handling—e.g., switch to formidable (as suggested) to handle multipart uploads and read the file without relying on the deprecated bodyParser.sizeLimit config. Alternatively, move the endpoint to the pages directory if you need to use export const config bodyParser settings there.