From 9c7a87fc65e23e5ec8ecd0074558ded9cea84157 Mon Sep 17 00:00:00 2001 From: n08i40k Date: Fri, 13 Sep 2024 01:58:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=83=D1=82=D1=8C=20=D0=BA=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D1=82=D0=B8=D1=84=D0=B8=D0=BA=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D0=BC=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B2=D0=BE?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B8=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BA=D0=B0=D0=BA=20=D0=BF=D0=BE=D0=BB=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9,=20=D0=B0=20=D0=BD=D0=B5=20=D0=BE=D1=82=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 33e4a6c..596b7eb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,16 +5,13 @@ import { PartialValidationPipe } from "./utility/validation/partial-validation.p import { ClassValidatorInterceptor } from "./utility/validation/class-validator.interceptor"; import { DocumentBuilder, SwaggerModule } from "@nestjs/swagger"; import { apiConstants, httpsConstants } from "./contants"; -import * as path from "node:path"; import * as fs from "node:fs"; async function bootstrap() { const app = await NestFactory.create(AppModule, { httpsOptions: { - cert: fs.readFileSync( - path.join(__dirname, httpsConstants.certPath), - ), - key: fs.readFileSync(path.join(__dirname, httpsConstants.keyPath)), + cert: fs.readFileSync(httpsConstants.certPath), + key: fs.readFileSync(httpsConstants.keyPath), }, }); const validatorOptions: ValidatorOptions = {