Skip to content

Commit 001d0d4

Browse files
committed
feat: changed nest adapter from default to fastify
1 parent 1f79317 commit 001d0d4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/main.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
import { NestFactory } from '@nestjs/core';
2+
import {
3+
FastifyAdapter,
4+
NestFastifyApplication,
5+
} from '@nestjs/platform-fastify';
26
import { AppModule } from './app.module';
37

48
async function bootstrap() {
5-
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
9+
const app = await NestFactory.create<NestFastifyApplication>(
10+
AppModule,
11+
new FastifyAdapter(),
12+
);
13+
14+
await app.listen(3000, '0.0.0.0');
715
}
816

917
bootstrap();

0 commit comments

Comments
 (0)