diff --git a/frontend/sentry.client.config.ts b/frontend/sentry.client.config.ts index b7e7575f..e158d704 100644 --- a/frontend/sentry.client.config.ts +++ b/frontend/sentry.client.config.ts @@ -1,5 +1,5 @@ import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env'; -import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; +// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; import { SentryErrorIntegration } from '@ifixit/sentry'; import { BrowserTracing } from '@sentry/browser'; import * as Sentry from '@sentry/nextjs'; @@ -14,8 +14,11 @@ const sampleRate = SENTRY_SAMPLING_ENABLED Sentry.init({ async beforeSend(event) { try { + /* + * Temporarily disable while we move to a new repo const current_production = await isCurrentProductionDeployment(); event.tags = { ...event.tags, current_production }; + */ } catch (e) { event.tags = { ...event.tags, before_send_error: true }; event.extra = { diff --git a/frontend/sentry.edge.config.ts b/frontend/sentry.edge.config.ts index fab1230e..a566018a 100644 --- a/frontend/sentry.edge.config.ts +++ b/frontend/sentry.edge.config.ts @@ -1,6 +1,6 @@ import { SentryErrorIntegration } from './../packages/sentry/index'; import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env'; -import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; +// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; import * as Sentry from '@sentry/nextjs'; const SENTRY_DSN = process.env.NEXT_PUBLIC_SENTRY_DSN; @@ -13,8 +13,11 @@ const sampleRate = SENTRY_SAMPLING_ENABLED Sentry.init({ async beforeSend(event) { try { + /* + * Temporarily disable while we move to a new repo const current_production = await isCurrentProductionDeployment(); event.tags = { ...event.tags, current_production }; + */ } catch (e) { event.tags = { ...event.tags, before_send_error: true }; event.extra = { diff --git a/frontend/sentry.server.config.ts b/frontend/sentry.server.config.ts index d7854010..fb9f8db6 100644 --- a/frontend/sentry.server.config.ts +++ b/frontend/sentry.server.config.ts @@ -1,5 +1,5 @@ import { SENTRY_SAMPLING_ENABLED, VERCEL_ENV } from '@config/env'; -import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; +// import { isCurrentProductionDeployment } from '@helpers/vercel-helpers'; import { SentryErrorIntegration } from '@ifixit/sentry'; import * as Sentry from '@sentry/nextjs'; @@ -33,8 +33,11 @@ Sentry.init({ } } try { + /* + * Temporarily disable while we move to a new repo const current_production = await isCurrentProductionDeployment(); event.tags = { ...event.tags, current_production }; + */ } catch (e) { event.tags = { ...event.tags, before_send_error: true }; event.extra = {