Skip to content

Commit

Permalink
Increase json payload limit to 5mb
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed Jul 4, 2024
1 parent b11b2b1 commit 8d81914
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/server/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { json } from 'express';

async function bootstrap() {
const app = await NestFactory.create(AppModule, { cors: true });
app.use(json({ limit: '5mb' }));
await app.listen(8090);
}
bootstrap();

0 comments on commit 8d81914

Please sign in to comment.