Browse Source

fix: pass servers to nestJS on initialization

Signed-off-by: mertmit <mertmit99@gmail.com>
feat/export-nest-dir-restructure
mertmit 2 years ago committed by starbirdtech383
parent
commit
f8a1f9567a
  1. 4
      packages/nocodb-nest/src/Noco.ts

4
packages/nocodb-nest/src/Noco.ts

@ -3,6 +3,7 @@ import { NestFactory } from '@nestjs/core';
import clear from 'clear';
import * as express from 'express';
import NcToolGui from 'nc-lib-gui';
import { IoAdapter } from '@nestjs/platform-socket.io';
import { AppModule } from './app.module';
import { NC_LICENSE_KEY } from './constants';
@ -96,6 +97,9 @@ export default class Noco {
this._server = server;
const nestApp = await NestFactory.create(AppModule);
nestApp.useWebSocketAdapter(new IoAdapter(httpServer));
nestApp.use(
express.json({ limit: process.env.NC_REQUEST_BODY_SIZE || '50mb' }),
);

Loading…
Cancel
Save