diff --git a/server/src/main.ts b/server/src/main.ts index 3e28f10..1c7e37a 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -2,11 +2,13 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { dotenvConfig } from './dotenv.config'; import * as cors from 'cors'; +import { json } from 'express'; async function bootstrap() { dotenvConfig(); const app = await NestFactory.create(AppModule); app.use(cors()); + app.use(json({ limit: '50mb' })); await app.listen(3010); } bootstrap();