Skip to content

Commit

Permalink
MAT-7188: increase request size limit (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
chubert-sb authored May 14, 2024
1 parent f7dad14 commit 6b76ec9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down

0 comments on commit 6b76ec9

Please sign in to comment.