import { ClassSerializerInterceptor } from '@nestjs/common'; import { NestFactory, Reflector } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); const reflector = app.get(Reflector); app.useGlobalInterceptors(new ClassSerializerInterceptor(reflector)); await app.listen(process.env.PORT ?? 3000); } void bootstrap();