Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 001d0d4

Browse files
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‎

Lines changed: 10 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /