diff --git a/local.env.sample b/local.env.sample index 02aa171d0..2a52fd1bd 100644 --- a/local.env.sample +++ b/local.env.sample @@ -4,5 +4,5 @@ REACT_APP_PLAUSIBLE_DOMAIN=app.local.terraso.org REACT_APP_SHARED_DATA_ACCEPTED_EXTENSIONS=csv,doc,docx,pdf,ppt,pptx,xlsx,xls REACT_APP_IMAGE_ACCEPTED_EXTENSIONS=jpeg,jpg REACT_APP_MAPBOX_ACCESS_TOKEN= +REACT_APP_SENTRY_DSN=https://xyz@o4506299756642304.ingest.sentry.io/abcd SENTRY_AUTH_TOKEN=sntrys_eyxxxxxxxxxxx -SENTRY_DSN=https://xyz@o4506299756642304.ingest.sentry.io/abcd diff --git a/src/config.ts b/src/config.ts index f63ece3ad..1eb383cc9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -34,7 +34,7 @@ export const COOKIES_DOMAIN = const COOKIES_PARAMS = { path: '/', domain: COOKIES_DOMAIN }; -export const SENTRY_DSN = process.env.SENTRY_DSN; +export const SENTRY_DSN = process.env.REACT_APP_SENTRY_DSN || ''; setAPIConfig({ terrasoAPIURL: TERRASO_API_URL,