1+ import { ThrottlerStorageRedisService } from "@nest-lab/throttler-storage-redis" ;
2+ import { BullModule } from "@nestjs/bull" ;
3+ import { MiddlewareConsumer , Module , NestModule , RequestMethod } from "@nestjs/common" ;
4+ import { ConfigModule } from "@nestjs/config" ;
5+ import { APP_FILTER , APP_GUARD , APP_INTERCEPTOR } from "@nestjs/core" ;
6+ import { seconds , ThrottlerModule } from "@nestjs/throttler" ;
7+ import { SentryGlobalFilter , SentryModule } from "@sentry/nestjs/setup" ;
8+ import { AppController } from "./app.controller" ;
19import appConfig from "@/config/app" ;
210import { CustomThrottlerGuard } from "@/lib/throttler-guard" ;
311import { AppLoggerMiddleware } from "@/middleware/app.logger.middleware" ;
@@ -13,23 +21,12 @@ import { JwtModule } from "@/modules/jwt/jwt.module";
1321import { PrismaModule } from "@/modules/prisma/prisma.module" ;
1422import { RedisModule } from "@/modules/redis/redis.module" ;
1523import { RedisService } from "@/modules/redis/redis.service" ;
16- import { ThrottlerStorageRedisService } from "@nest-lab/throttler-storage-redis" ;
17- import { BullModule } from "@nestjs/bull" ;
18- import { MiddlewareConsumer , Module , NestModule , RequestMethod } from "@nestjs/common" ;
19- import { ConfigModule } from "@nestjs/config" ;
20- import { APP_GUARD , APP_INTERCEPTOR , APP_FILTER } from "@nestjs/core" ;
21- import { seconds , ThrottlerModule } from "@nestjs/throttler" ;
22- import { SentryModule , SentryGlobalFilter } from "@sentry/nestjs/setup" ;
23-
24- import { AppController } from "./app.controller" ;
2524
2625@Module ( {
2726 imports : [
2827 SentryModule . forRoot ( ) ,
2928 ConfigModule . forRoot ( {
30- ...( process . env . NODE_ENV === "production"
31- ? { envFilePath : ".env.production" }
32- : { ignoreEnvFile : true } ) ,
29+ ignoreEnvFile : true ,
3330 isGlobal : true ,
3431 load : [ appConfig ] ,
3532 } ) ,
0 commit comments