We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eab1064 + 2196704 commit d67d72cCopy full SHA for d67d72c
src/main.ts
@@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
5
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
6
import expressBasicAuth from 'express-basic-auth';
7
import cookieParser from 'cookie-parser';
8
+import { json } from 'express';
9
10
async function bootstrap() {
11
const app = await NestFactory.create(AppModule);
@@ -18,6 +19,7 @@ async function bootstrap() {
18
19
},
20
}),
21
);
22
+ app.use(json({ limit: '5mb' }));
23
app.use(cookieParser());
24
25
app.useGlobalPipes(
0 commit comments