We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02af1ac commit 338dd6bCopy full SHA for 338dd6b
src/main.ts
@@ -7,6 +7,6 @@ async function bootstrap() {
7
const app = await NestFactory.create(AppModule);
8
app.useGlobalPipes(new ValidationPipe());
9
app.useGlobalFilters(new CustomExceptionFilter());
10
- await app.listen(3000);
+ await app.listen(process.env.PORT || 3000);
11
}
12
bootstrap();
0 commit comments