Commit 68a40801 authored by nanahira's avatar nanahira

fix too large entity

parent 2a660a9a
Pipeline #2945 passed with stages
in 2 minutes and 17 seconds
import { NestFactory } from '@nestjs/core'; import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module'; import { AppModule } from './app.module';
import bodyParser from 'body-parser';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create(AppModule); const app = await NestFactory.create(AppModule);
app.enableCors(); app.enableCors();
app.use(bodyParser.json({ limit: '50mb' }));
app.use(
bodyParser.urlencoded({
limit: '50mb',
extended: true,
parameterLimit: 50000,
}),
);
await app.listen(3000); await app.listen(3000);
} }
bootstrap(); bootstrap();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment