Skip to content

Commit

Permalink
feat: increase payload limit (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Aug 30, 2024
1 parent ede5a9e commit 9776ee6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ app.use(corsMiddleware)
app.use(authMiddleware)

app.use(ratelimit)
app.use(bodyParser())

app.use(
bodyParser({
jsonLimit: "20mb",
textLimit: "20mb",
xmlLimit: "20mb",
formLimit: "20mb",
}),
)
app.use(setDefaultBody)

if (config.IS_SELF_HOSTED) {
Expand Down

0 comments on commit 9776ee6

Please sign in to comment.