INNER CODE UNIT · TypeScript

bootstrap

mikemajesty/nestjs-monorepo · apps/auth-api/src/main.ts:16

async function bootstrap() {
  const app = await NestFactory.create(MainModule, {
    bufferLogs: true,
    cors: true,
  });

  app.useGlobalPipes(
    new ValidationPipe({
      errorHttpStatusCode: HttpStatus.PRECONDITION_FAILED,
    }),
  );

  const loggerService = app.get(ILoggerService);

  loggerService.setApplication(name);
  app.useGlobalFilters(new AppExceptionFilter(loggerService));

  app.useGlobalInterceptors(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…