add env process

This commit is contained in:
Николай Вигдоров
2025-03-06 22:04:07 +03:00
parent 1c3dc15c52
commit c72a21db4a
3 changed files with 17 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { APP_CONTROLLER } from './consts';
import { APP_CONTROLLER, APP_PORT } from './consts';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
@ -22,7 +22,8 @@ async function bootstrap() {
SwaggerModule.setup('api', app, document);
await app.listen(4005);
console.log(`Application is starting on port ${APP_PORT}`);
await app.listen(APP_PORT);
}
void bootstrap();