Add env validation

This commit is contained in:
Toast 2025-01-30 10:43:02 +01:00
parent 43898b3b95
commit 6cd5e3188f
4 changed files with 62 additions and 2 deletions

View file

@ -15,6 +15,6 @@ async function bootstrap() {
logger.log("In development mode, not enabling CORS")
}
await app.listen(process.env.PORT ?? 3000);
await app.listen(process.env.PORT);
}
bootstrap();