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

-2
View File
@@ -6,7 +6,6 @@ npwd_temp
resources/html
phone/.eslintcache
phone/.env
# Node Modules and Built Folders
node_modules
@@ -26,4 +25,3 @@ sv_npwd.log
# FXServer Yarn
.yarn.installed
phone/.env
+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