3ee5ec4412
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
11 lines
153 B
JavaScript
11 lines
153 B
JavaScript
export const config = {
|
|
api: {
|
|
bodyParser: {
|
|
sizeLimit: '5mb'
|
|
}
|
|
}
|
|
}
|
|
|
|
export default (req, res) => {
|
|
res.status(200).json(req.body)
|
|
}
|