tweak(phone): tweaked env handling to expose package.json version for sentry

This commit is contained in:
Taso committed 2021-08-05 20:42:43 -04:00
1 parent dce079222a
commit 8461c1acd2
3 files changed
+2 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
REACT_APP_VERSION=$npm_package_version
+1 -1
View File
@@ -20,7 +20,7 @@ if (PhoneConfig.SentryErrorMetrics && process.env.NODE_ENV !== 'development') {
Sentry.init({
dsn: 'https://[email protected]/2',
autoSessionTracking: true,
release: process.env.REACT_APP_SENTRY_RELEASE || '0.0.0',
release: process.env.REACT_APP_VERSION,
integrations: [new Integrations.BrowserTracing()],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control