We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c585fad commit 72b296bCopy full SHA for 72b296b
WalletProxy/src/main.ts
@@ -1,6 +1,7 @@
1
import { NestFactory } from '@nestjs/core';
2
import { INestApplication } from '@nestjs/common';
3
import { AppModule } from './app.module';
4
+import { urlencoded, json } from 'express';
5
import { PPCRPC } from 'src/utils/rpc';
6
const config = require('./config/index');
7
@@ -32,7 +33,13 @@ async function bootstrapWhenNodeIsReady() {
32
33
return setTimeout(bootstrapWhenNodeIsReady, 1000);
34
}
35
- return bootstrap(await NestFactory.create(AppModule));
36
+ const app = await NestFactory.create(AppModule);
37
+
38
+ app.use(json({ limit: '5mb' }));
39
+ app.use(urlencoded({ extended: true, limit: '5mb' }));
40
41
42
+ return bootstrap(app);
43
44
45
bootstrapWhenNodeIsReady();
0 commit comments