Skip to content

Commit d67d72c

Browse files
authored
Merge pull request #10 from wang-bam-bbang/image
fix: increase entity limit to 5mb
2 parents eab1064 + 2196704 commit d67d72c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
55
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
66
import expressBasicAuth from 'express-basic-auth';
77
import cookieParser from 'cookie-parser';
8+
import { json } from 'express';
89

910
async function bootstrap() {
1011
const app = await NestFactory.create(AppModule);
@@ -18,6 +19,7 @@ async function bootstrap() {
1819
},
1920
}),
2021
);
22+
app.use(json({ limit: '5mb' }));
2123
app.use(cookieParser());
2224

2325
app.useGlobalPipes(

0 commit comments

Comments
 (0)