diff --git a/src/main.ts b/src/main.ts index 350db64..caba4c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,17 +1,12 @@ import { INestApplication } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger"; -import * as dotenv from "dotenv"; import { AppModule } from "./app.module"; -import { Environment } from "./config/env.validation"; -dotenv.config(); async function bootstrap() { const app = await NestFactory.create(AppModule); - if (process.env.NODE_ENV !== Environment.Production) { - setupSwagger(app); - } + setupSwagger(app); await app.listen(3000); }