rsnext/test/integration/api-support/pages/api/big-parse.js
Lukáš Huvar 3ee5ec4412 Configuration for body parsing size limit (#7896)
This PR introduces the possibility to change the size of the parsed body. This brings features like:
- Adjusting the size of the incoming message
- Better security
2019-07-25 15:43:55 +00:00

11 lines
153 B
JavaScript

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