Skip to content

Commit fd5f1d7

Browse files
authored
Disable sentry for local dev by default. (#307)
1 parent 76d5ae4 commit fd5f1d7

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.env_example

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ USE_EXTERNAL_SERVER=false
1414
DEV_SERVER_URL=http://192.168.2.20:5173
1515

1616
# The level of logging to use.
17-
LOG_LEVEL=debug
17+
LOG_LEVEL=debug
18+
19+
# Send events to Sentry
20+
SENTRY_ENABLED=false

.env_test_example

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ COMFY_HOST=localhost
77
COMFY_PORT=5173
88

99
# Whether to use an external server instead of starting one locally.
10-
USE_EXTERNAL_SERVER=true
10+
USE_EXTERNAL_SERVER=true
11+
12+
# Send events to Sentry
13+
SENTRY_ENABLED=false

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
assets
55
.vite
66
scripts
7+
.env_*

src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ let alwaysSendCrashReports = false;
3434
Sentry.init({
3535
dsn: SENTRY_URL_ENDPOINT,
3636
autoSessionTracking: false,
37+
enabled: process.env.SENTRY_ENABLED === 'true' || app.isPackaged,
3738
beforeSend: async (event, hint) => {
3839
if (event.extra?.comfyUIExecutionError || alwaysSendCrashReports) {
3940
return event;

0 commit comments

Comments
 (0)