collaborative editor - wip

This commit is contained in:
Philipinho
2023-09-15 01:22:47 +01:00
parent 0d648c17fa
commit 4382c5a1d0
21 changed files with 375 additions and 23 deletions
+2
View File
@@ -6,6 +6,7 @@ import {
} from '@nestjs/platform-fastify';
import { ValidationPipe } from '@nestjs/common';
import { TransformHttpResponseInterceptor } from './interceptors/http-response.interceptor';
import { WsAdapter } from '@nestjs/platform-ws';
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(
@@ -25,6 +26,7 @@ async function bootstrap() {
app.enableCors();
app.useGlobalInterceptors(new TransformHttpResponseInterceptor());
app.useWebSocketAdapter(new WsAdapter(app));
await app.listen(process.env.PORT || 3001);
}