diff --git a/src/main.ts b/src/main.ts index ba90ede..456d079 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,9 +1,10 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import 'dotenv/config'; +import * as process from 'node:process'; async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(3030); + await app.listen(process.env.PORT || 3000); } bootstrap();