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