import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication, } from '@nestjs/platform-fastify'; import { AppModule } from './app.module'; import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create( AppModule, new FastifyAdapter(), ); app.useGlobalPipes( new ValidationPipe({ whitelist: true, }), ); await app.listen(3000); } bootstrap();