diff --git a/src/main.ts b/src/main.ts index 910443c..f68c25f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,10 +1,13 @@ import { NestFactory } from '@nestjs/core'; import { ExportModule } from './export.module'; +import * as bodyParser from 'body-parser'; export async function bootstrap() { const app = await NestFactory.create(ExportModule, { logger: ['error', 'log'], }); + app.use(bodyParser.json({ limit: '50mb' })); + app.use(bodyParser.urlencoded({ limit: '50mb', extended: true })); app.setGlobalPrefix('/api'); app.enableCors({ origin: [