dword-design / nuxt-mail

Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Other
247 stars 18 forks source link

Allow changing default options for express.json() middleware #126

Open mauro-sterpin opened 2 years ago

mauro-sterpin commented 2 years ago

I've ran into an issue where the default body size limit of 100kb (https://expressjs.com/en/api.html#express.methods) is too small for my usecase. Especially when trying to send a file - the middleware always returns the PayloadTooLargeError error.

It would be nice if there was a way to provide custom configuration to the express.json middleware.