diff --git a/api/index.ts b/api/index.ts index f68f0e1..8af7f64 100644 --- a/api/index.ts +++ b/api/index.ts @@ -2,8 +2,8 @@ import { NestFactory } from '@nestjs/core'; import { ExpressAdapter } from '@nestjs/platform-express'; import { ValidationPipe } from '@nestjs/common'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; -import * as express from 'express'; -import * as bodyParser from 'body-parser'; +import express from 'express'; +import bodyParser from 'body-parser'; import { join } from 'path'; // 缓存 app 实例,避免每次冷启动都重新创建