From de1b37b6ada4158db171c55ec797b5936ad6990b Mon Sep 17 00:00:00 2001 From: a20688392 Date: Sun, 12 Feb 2023 16:10:02 +0800 Subject: [PATCH] chore: cancel product status setting --- src/main.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); }