Commit 99a6d5cc authored by nanahira's avatar nanahira

fix

parent d37c1be2
Pipeline #19593 passed with stages
in 34 seconds
...@@ -4,7 +4,6 @@ import { NestExpressApplication } from '@nestjs/platform-express'; ...@@ -4,7 +4,6 @@ import { NestExpressApplication } from '@nestjs/platform-express';
import { AppModule } from './app.module'; import { AppModule } from './app.module';
import { ConfigService } from '@nestjs/config'; import { ConfigService } from '@nestjs/config';
import { KoishiWsAdapter } from 'koishi-nestjs'; import { KoishiWsAdapter } from 'koishi-nestjs';
import PackageJson from '../package.json';
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule); const app = await NestFactory.create<NestExpressApplication>(AppModule);
...@@ -17,9 +16,9 @@ async function bootstrap() { ...@@ -17,9 +16,9 @@ async function bootstrap() {
app.set('trust proxy', ['172.16.0.0/12', 'loopback']); app.set('trust proxy', ['172.16.0.0/12', 'loopback']);
const documentConfig = new DocumentBuilder() const documentConfig = new DocumentBuilder()
.setTitle(PackageJson.name) .setTitle('jdaw')
.setDescription(PackageJson.description) .setDescription('决斗暗网')
.setVersion(PackageJson.version) .setVersion('1.0.0')
.build(); .build();
const document = SwaggerModule.createDocument(app, documentConfig); const document = SwaggerModule.createDocument(app, documentConfig);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment