Skip to content

Commit

Permalink
fix: корректная инициализация sentry в server окружении
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Jul 12, 2022
1 parent fdae6e1 commit b9dbea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import env from "./src/env"
const loggerTransports = [new ConsoleTransport()]
const exceptionCapturers = [new ConsoleCapturer()]

if (env.sentryDsn && typeof window !== "undefined") {
if (env.sentryDsn) {
const sentryCapturer = new SentryNextCapturer({
dsn: env.sentryDsn,
environment: env.sentryEnv
Expand Down

0 comments on commit b9dbea6

Please sign in to comment.