Retrait de l'adapter Websocket inutile
This commit is contained in:
		| @@ -2,13 +2,11 @@ import { NestFactory, Reflector } from '@nestjs/core' | ||||
| import { AppModule } from './app.module' | ||||
| import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger' | ||||
| import { ClassSerializerInterceptor, ValidationPipe } from '@nestjs/common' | ||||
| import { IoAdapter } from '@nestjs/platform-socket.io' | ||||
|  | ||||
| async function bootstrap() { | ||||
|   const app = await NestFactory.create(AppModule, { cors: true }) | ||||
|  | ||||
|   app.setGlobalPrefix(process.env.API_GLOBAL_PREFIX ?? '') | ||||
|   app.useWebSocketAdapter(new IoAdapter(app)) | ||||
|   app.useGlobalPipes(new ValidationPipe({ transform: true })) | ||||
|   app.useGlobalInterceptors(new ClassSerializerInterceptor(app.get(Reflector))) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user