Skip to content

Commit 376d4a5

Browse files
authored
API request body size limit increase (#1079)
1 parent aa389ad commit 376d4a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/api/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ setImmediate(async () => {
151151

152152
app.use(
153153
bodyParser.json({
154+
limit: '5mb',
154155
verify(req, res, buf) {
155156
const url = (<any>req).originalUrl
156157
if (url.startsWith('/webhooks/stripe') || url.startsWith('/webhooks/sendgrid')) {
@@ -162,7 +163,7 @@ setImmediate(async () => {
162163
}),
163164
)
164165

165-
app.use(bodyParser.urlencoded({ extended: true }))
166+
app.use(bodyParser.urlencoded({ limit: '5mb', extended: true }))
166167

167168
// Configure the Entity routes
168169
const routes = express.Router()

0 commit comments

Comments
 (0)