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 = {