Skip to content

Commit

Permalink
fix: increase payload limit (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnugent authored Nov 12, 2024
1 parent f78f8ac commit 2f108b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ export async function createServer (): Promise<{ app: express.Application, serve
})
// server must be started before applying middleware
await server.start()
server.applyMiddleware({ app, path: '/' })
server.applyMiddleware({
app,
path: '/',
bodyParserConfig: {
limit: '10mb'
}
})

return { app, server }
}
Expand Down

0 comments on commit 2f108b7

Please sign in to comment.