import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; // import { SwaggerService } from '@wwjCommon/swagger/swagger.service'; async function bootstrap() { const app = await NestFactory.create(AppModule); // 暂时禁用 Swagger 文档 // const swaggerService = app.get(SwaggerService); // swaggerService.setupSwagger(app); const port = parseInt(process.env.APP_PORT || '3000'); console.log(`Application is starting on port: ${port}`); await app.listen(port); } bootstrap();