import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { configureApp } from './app.setup'; export async function bootstrap(): Promise { const app = await NestFactory.create(AppModule); configureApp(app); await app.listen(process.env.PORT ?? 3000); }