Skip to content

Commit

Permalink
Persist: increase request size limit (#1594)
Browse files Browse the repository at this point in the history
express.json middleware default limit is 100kb
https://expressjs.com/en/api.html#express.json
Data sent to the persist API can be much bigger
  • Loading branch information
TBonnin authored Feb 1, 2024
1 parent dfe07c6 commit 8067aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/persist/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './tracer.js';
import { logLevelValues } from '@nangohq/shared';

export const server = express();
server.use(express.json());
server.use(express.json({ limit: '100mb' }));

server.use((req: Request, res: Response, next: NextFunction) => {
const originalSend = res.send;
Expand Down

0 comments on commit 8067aff

Please sign in to comment.