text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const common_1 = require("@nestjs/common");
  const core_1 = require("@nestjs/core");
  const app_module_1 = require("./app.module");
  const unauthorized_interceptor_1 = require("./interceptors/unauthorized.interceptor");
  async function bootstrap() {
      const app = await core_1.NestFactory.create(app_module_1.AppModule, {
          cors: { origin: ['http://localhost:3001', 'https://xboxalike.herokuapp.com'] },
      });
      app.useGlobalPipes(new common_1.ValidationPipe({
          transform: true,
          whitelist: true,
          forbidNonWhitelisted: true,
      }));
      app.useGlobalInterceptors(new unauthorized_interceptor_1.UnauthorizedInterceptor());
      await app.listen(process.env.PORT || 3000);
  }
  bootstrap();
  //# sourceMappingURL=main.js.map