import { NestFactory } from '@nestjs/core'; import { LoggerService } from '@modules/shared'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule, { bufferLogs: true }); const logger = app.get(LoggerService); app.useLogger(logger); const port = process.env['PORT'] ?? 3001; await app.listen(port); logger.log(`API running on http://localhost:${port}`, 'Bootstrap'); } bootstrap();