configurable port

This commit is contained in:
Philipinho
2023-08-20 13:43:45 +01:00
parent b7c3ef1c27
commit c0b2bc1f57
3 changed files with 2 additions and 3 deletions

View File

@ -22,9 +22,10 @@ async function bootstrap() {
stopAtFirstError: true,
}),
);
app.enableCors();
app.useGlobalInterceptors(new TransformHttpResponseInterceptor());
await app.listen(3001);
await app.listen(process.env.PORT || 3001);
}
bootstrap();