From 9b20f773e4711f258d17f2ff4e89f6a3792f5fcf Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 11 Nov 2020 00:35:19 -0800 Subject: [PATCH] Extract DSN --- src/constants.js | 2 ++ src/index.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index f85b5432..0d54b2e6 100644 --- a/src/constants.js +++ b/src/constants.js @@ -11,3 +11,5 @@ export const SKIN_CDN = "https://cdn.webampskins.org"; export const API_URL = "https://api.webampskins.org"; export const HEADING_HEIGHT = 46; export const CHUNK_SIZE = 300; +export const SENTRY_DSN = + "https://e8278543caf0486b83d718156177c522@o68382.ingest.sentry.io/5508251"; diff --git a/src/index.js b/src/index.js index 3b12b5cc..bc826d47 100644 --- a/src/index.js +++ b/src/index.js @@ -7,10 +7,10 @@ import * as Sentry from "@sentry/react"; import { Integrations } from "@sentry/tracing"; // import registerServiceWorker from "./registerServiceWorker"; import { unregister } from "./registerServiceWorker"; +import { SENTRY_DSN } from "./constants"; Sentry.init({ - dsn: - "https://e8278543caf0486b83d718156177c522@o68382.ingest.sentry.io/5508251", + dsn: SENTRY_DSN, integrations: [new Integrations.BrowserTracing()], // We recommend adjusting this value in production, or using tracesSampler