diff --git a/src/config.ts b/src/config.ts index 28e2b8658..70b05bccf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -38,6 +38,8 @@ const COOKIES_PARAMS = { path: '/', domain: COOKIES_DOMAIN }; export const ROLLBAR_TOKEN = process.env.REACT_APP_ROLLBAR_TOKEN; +export const SENTRY_DSN = process.env.SENTRY_DSN; + setAPIConfig({ terrasoAPIURL: TERRASO_API_URL, graphQLEndpoint: GRAPHQL_ENDPOINT, diff --git a/src/index.js b/src/index.js index bfa19e35e..c5c6d5316 100644 --- a/src/index.js +++ b/src/index.js @@ -33,7 +33,7 @@ import 'index.css'; import App from 'App'; Sentry.init({ - dsn: 'https://dac0c436847fc922e68de0855b5ff738@o4506299756642304.ingest.sentry.io/4506345074130944', + dsn: config.SENTRY_DSN, integrations: [ new Sentry.BrowserTracing({ // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled