diff --git a/src/main.ts b/src/main.ts index 8e7697148..e063bc18c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -49,11 +49,18 @@ Sentry.init({ dsn: __SENTRY_DSN__, enabled: __SENTRY_ENABLED__, release: __COMFYUI_FRONTEND_VERSION__, - integrations: [], - autoSessionTracking: false, - defaultIntegrations: false, normalizeDepth: 8, - tracesSampleRate: 0 + tracesSampleRate: isCloud ? 1.0 : 0, + replaysSessionSampleRate: 0, + replaysOnErrorSampleRate: 0, + // Only set these for non-cloud builds + ...(isCloud + ? {} + : { + integrations: [], + autoSessionTracking: false, + defaultIntegrations: false + }) }) app.directive('tooltip', Tooltip) app