switch to fastify

This commit is contained in:
Philipinho
2023-08-03 17:29:50 +01:00
parent 8c84bf822e
commit 11018ea976
3 changed files with 452 additions and 22 deletions

View File

@ -1,8 +1,19 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter({
ignoreTrailingSlash: true,
ignoreDuplicateSlashes: true,
}),
);
await app.listen(3000);
}
bootstrap();