Skip to content

Commit 2f108b7

Browse files
authored
fix: increase payload limit (#421)
1 parent f78f8ac commit 2f108b7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/server.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ export async function createServer (): Promise<{ app: express.Application, serve
5555
})
5656
// server must be started before applying middleware
5757
await server.start()
58-
server.applyMiddleware({ app, path: '/' })
58+
server.applyMiddleware({
59+
app,
60+
path: '/',
61+
bodyParserConfig: {
62+
limit: '10mb'
63+
}
64+
})
5965

6066
return { app, server }
6167
}

0 commit comments

Comments
 (0)