2025-10-13 01:27:37 +08:00
|
|
|
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);
|
|
|
|
|
|
2025-10-14 22:40:06 +08:00
|
|
|
const port = parseInt(process.env.APP_PORT || '3000');
|
|
|
|
|
console.log(`Application is starting on port: ${port}`);
|
|
|
|
|
await app.listen(port);
|
2025-10-13 01:27:37 +08:00
|
|
|
}
|
|
|
|
|
bootstrap();
|