import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { ConfigService } from '@nestjs/config'; async function bootstrap() { const app = await NestFactory.create(AppModule); const config = app.get(ConfigService); app.enableCors({ origin: config.get('corsOrigin'), credentials: true, }); const port = config.get('port'); await app.listen(port); console.log(`Helix Engage Server running on port ${port}`); } bootstrap();