Skip to content

Commit

Permalink
Merge pull request #10 from wang-bam-bbang/image
Browse files Browse the repository at this point in the history
fix: increase entity limit to 5mb
  • Loading branch information
Kimcheolhui authored Dec 8, 2024
2 parents eab1064 + 2196704 commit d67d72c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ValidationPipe } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import expressBasicAuth from 'express-basic-auth';
import cookieParser from 'cookie-parser';
import { json } from 'express';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
Expand All @@ -18,6 +19,7 @@ async function bootstrap() {
},
}),
);
app.use(json({ limit: '5mb' }));
app.use(cookieParser());

app.useGlobalPipes(
Expand Down

0 comments on commit d67d72c

Please sign in to comment.