You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
698 B
23 lines
698 B
import { Module } from '@nestjs/common';
|
|
import { ConfigModule, ConfigService } from '@nestjs/config';
|
|
import { BullModule } from '@nestjs/bull';
|
|
import { ScreenshotsModule } from './screenshots/screenshots.module';
|
|
import { BullConfigService } from './bull/bullConfigService';
|
|
import { ServeStaticModule } from '@nestjs/serve-static';
|
|
import { join } from 'path';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot(),
|
|
BullModule.forRootAsync({
|
|
imports: [ConfigModule],
|
|
useClass: BullConfigService,
|
|
inject: [ConfigService],
|
|
}),
|
|
ScreenshotsModule,
|
|
ServeStaticModule.forRoot({
|
|
rootPath: join(__dirname, '..', 'client'),
|
|
}),
|
|
],
|
|
})
|
|
export class AppModule {}
|
|
|