Skip to content

Commit

Permalink
fix(services): Disable sentry in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Dec 13, 2023
1 parent 298330e commit 486fe32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions services/apps/assignments/src/assignments.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {CourseMemberModule} from "./course-member/course-member.module";
EventModule.forRoot({nats: environment.nats}),
ScheduleModule.forRoot(),
SentryModule.forRoot({
enabled: environment.nodeEnv !== 'development',
dsn: environment.sentryDsn,
environment: environment.nodeEnv,
release: environment.version,
Expand Down
1 change: 1 addition & 0 deletions services/apps/projects/src/projects.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {EventModule} from "@app/event/event.module";
ContainerModule,
ScheduleModule.forRoot(),
SentryModule.forRoot({
enabled: environment.nodeEnv !== 'development',
dsn: environment.sentryDsn,
environment: environment.nodeEnv,
release: environment.version,
Expand Down

0 comments on commit 486fe32

Please sign in to comment.