diff --git a/src/main.ts b/src/main.ts index d336598..4d3ee73 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -import { randomStringGenerator } from "@nestjs/common/utils/random-string-generator.util"; +import { ValidationPipe } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { FastifyAdapter, @@ -8,12 +8,14 @@ import helmet from "helmet"; import { AppModule } from "./app.module"; async function bootstrap() { - const app = await NestFactory.create( + const app = await NestFactory.create( AppModule, - new FastifyAdapter({ logger: true }), + //new FastifyAdapter({ logger: true }), ); app.use(helmet()); app.enableCors(); + app.useGlobalPipes(new ValidationPipe()); + await app.listen(process.env.APP_PORT || 3333, "0.0.0.0"); } bootstrap();