diff --git a/src/server.ts b/src/server.ts index 825ebdd..b1ed262 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,5 +1,8 @@ import { NestFactory } from '@nestjs/core'; import { ApplicationModule } from './modules/app.module'; -const app = NestFactory.create(ApplicationModule); -app.listen(3000, () => console.log('Application is listening on port 3000.')); \ No newline at end of file +async function bootstrap() { + const app = await NestFactory.create(ApplicationModule); + await app.listen(3000); +} +bootstrap();