diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 434a42f..5b68438 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -24,6 +24,11 @@ async function bootstrap() { const configService = app.get>(ConfigService); const port = configService.get('PORT', 3000); + + if (configService.get('ENV') !== 'development') { + app.enableShutdownHooks(); + } + await app.listen(port); logger.log( `🚀 Application is running on: http://localhost:${port}/${globalPrefix}`