"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@nestjs/core"); const app_module_1 = require("./app.module"); const common_1 = require("@nestjs/common"); async function bootstrap() { const app = await core_1.NestFactory.create(app_module_1.AppModule); if (process.env.NODE_ENV !== 'production') app.enableCors(); app.useGlobalPipes(new common_1.ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true, })); await app.listen(process.env.PORT ?? 3000); } bootstrap(); //# sourceMappingURL=main.js.map