/** * App main. * @file Index 入口文件 * @module src/main * @author zhxiao1124 */ import "dotenv/config"; import { Logger } from "@nestjs/common"; import { NestFactory } from "@nestjs/core"; import { APP_CONFIG, OPTIONS_CONFIG } from "@config/app.config"; import { AppModule } from "@src/app/app.module"; import { bootstrapApp } from "@src/bootstrap"; const logger = new Logger("AppLoader"); async function bootstrap() { const app = await NestFactory.create(AppModule, OPTIONS_CONFIG); bootstrapApp(app); await app.listen(APP_CONFIG.PORT); logger.log(`Application is running on: ${await app.getUrl()}`); } void bootstrap();