Files
next.js/test/integration/api-support/pages/api/big-parse.ts
4e9cc18917 fix: don't fail with amp config in JS (#82798)
Because tsc doesn't infer string literal types in JS files

---------

Co-authored-by: JJ Kasper <[email protected]>
2025-08-19 13:40:39 -07:00

14 lines
245 B
TypeScript

import { NextApiRequest, NextApiResponse } from 'next'
export const config = {
api: {
bodyParser: {
sizeLimit: '5mb',
},
},
}
export default (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json(req.body)
}