main.ts 360 B

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