|
|
@ -1,9 +1,11 @@ |
|
|
|
import { NestFactory } from '@nestjs/core'; |
|
|
|
import { NestFactory } from '@nestjs/core'; |
|
|
|
import cors from 'cors'; |
|
|
|
import cors from 'cors'; |
|
|
|
|
|
|
|
import express from 'express' |
|
|
|
import { AppModule } from './app.module'; |
|
|
|
import { AppModule } from './app.module'; |
|
|
|
|
|
|
|
|
|
|
|
async function bootstrap() { |
|
|
|
async function bootstrap() { |
|
|
|
const app = await NestFactory.create(AppModule); |
|
|
|
const app = await NestFactory.create(AppModule); |
|
|
|
|
|
|
|
app.use(express.json({ limit: process.env.NC_REQUEST_BODY_SIZE || '50mb' })); |
|
|
|
app.use( |
|
|
|
app.use( |
|
|
|
cors({ |
|
|
|
cors({ |
|
|
|
exposedHeaders: 'xc-db-response', |
|
|
|
exposedHeaders: 'xc-db-response', |
|
|
|