diff --git a/packages/overlay/src/integrations/sentry/data/sentryDataCache.ts b/packages/overlay/src/integrations/sentry/data/sentryDataCache.ts index 28b75d34..6b2e343d 100644 --- a/packages/overlay/src/integrations/sentry/data/sentryDataCache.ts +++ b/packages/overlay/src/integrations/sentry/data/sentryDataCache.ts @@ -44,7 +44,7 @@ class SentryDataCache { initial.forEach(e => this.pushEvent(e)); } - setSidecarUrl(url: string) { + setSidecarUrl(url: string | null) { if (!url) { this.contextLinesProvider = null; return; diff --git a/packages/overlay/src/integrations/sentry/index.ts b/packages/overlay/src/integrations/sentry/index.ts index 69413e2c..60ea31b8 100644 --- a/packages/overlay/src/integrations/sentry/index.ts +++ b/packages/overlay/src/integrations/sentry/index.ts @@ -31,6 +31,8 @@ export default function sentryIntegration(options: SentryIntegrationOptions = {} } if (options.sidecarUrl) { sentryDataCache.setSidecarUrl(options.sidecarUrl); + } else if ('sidecarUrl' in options) { + sentryDataCache.setSidecarUrl(null); } addSpotlightIntegrationToSentry(options);