Skip to content

Commit

Permalink
Merge pull request #896 from aura-nw/baseline/main_20230802.1
Browse files Browse the repository at this point in the history
Baseline/main_20230802.1
  • Loading branch information
nhphuc2411 authored Aug 2, 2023
2 parents 074568a + d0e570e commit 9cac7f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 41 deletions.
15 changes: 0 additions & 15 deletions src/app.controller.ts

This file was deleted.

5 changes: 1 addition & 4 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';

import { SharedModule } from './shared/shared.module';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ComponentsModule } from './components/components.module';
import { AccountModule } from './components/account/account.module';
import { ServiceUtil } from './shared/utils/service.util';
Expand All @@ -28,7 +26,6 @@ import { AuthModule } from './auth/auth.module';
SoulboundTokenModule,
NameTagModule,
],
controllers: [AppController],
providers: [AppService, ServiceUtil, MetricService],
providers: [ServiceUtil, MetricService],
})
export class AppModule {}
21 changes: 0 additions & 21 deletions src/app.service.ts

This file was deleted.

7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ async function bootstrap() {
.addBearerAuth()
.build();
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('doc', app, document);

if (process.env.NODE_ENV === 'production') {
SwaggerModule.setup('doc', app, null);
} else {
SwaggerModule.setup('doc', app, document);
}

//bull-board
const redisOpts = configService.get('cacheManagement.redis');
Expand Down

0 comments on commit 9cac7f5

Please sign in to comment.