Skip to content

Commit

Permalink
add env of port
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhardman committed Nov 3, 2023
1 parent 2ccf495 commit 7c40a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
app.useGlobalInterceptors(new TransformInterceptor());

await app.listen(3000);
await app.listen(process.env.PORT || 3000);
}
bootstrap();

0 comments on commit 7c40a94

Please sign in to comment.