Skip to content

Commit

Permalink
#159 | Update max json request size to account for download all media…
Browse files Browse the repository at this point in the history
… request
  • Loading branch information
Suhas Vishwanath committed Sep 29, 2023
1 parent 761e70e commit 78fd9f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 78fd9f8

Please sign in to comment.