import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { serverConfig } from './config'; async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(process.env.PORT ?? 3000); console.log(`Server started at localhost:3000 $$ Exposed at ${serverConfig.exposedUrl}`) } bootstrap();