Skip to content

Commit f3483c6

Browse files
authored
nits
1 parent 1564964 commit f3483c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

autogpt_platform/frontend/instrumentation-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from "@/lib/utils";
1212
import * as Sentry from "@sentry/nextjs";
1313

14-
const isProdOrDev = getAppEnv() === AppEnv.PROD || getAppEnv() === AppEnv.DEV;
14+
const isProdOrDev = [AppEnv.PROD, AppEnv.DEV].includes(getAppEnv());
1515

1616
const isCloud = getBehaveAs() === BehaveAs.CLOUD;
1717
const isDisabled = process.env.DISABLE_SENTRY === "true";

autogpt_platform/frontend/sentry.edge.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
getEnvironmentStr,
1313
} from "./src/lib/utils";
1414

15-
const isProdOrDev = getAppEnv() === AppEnv.PROD || getAppEnv() === AppEnv.DEV;
15+
const isProdOrDev = [AppEnv.PROD, AppEnv.DEV].includes(getAppEnv());
1616

1717
const isCloud = getBehaveAs() === BehaveAs.CLOUD;
1818
const isDisabled = process.env.DISABLE_SENTRY === "true";

autogpt_platform/frontend/sentry.server.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import * as Sentry from "@sentry/nextjs";
1313
// import { NodeProfilingIntegration } from "@sentry/profiling-node";
1414

15-
const isProdOrDev = getAppEnv() === AppEnv.PROD || getAppEnv() === AppEnv.DEV;
15+
const isProdOrDev = [AppEnv.PROD, AppEnv.DEV].includes(getAppEnv());
1616

1717
const isCloud = getBehaveAs() === BehaveAs.CLOUD;
1818
const isDisabled = process.env.DISABLE_SENTRY === "true";

0 commit comments

Comments
 (0)