diff --git a/src/main.ts b/src/main.ts index 13cad38..eb2b608 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,10 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; +process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = "0"; + async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(3000); + await app.listen(process.env['PORT'] || 3000); } bootstrap();