mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Merge pull request #2331 from resin-io/env-analytics
feat(gui): Add ability to set analytics tokens via env Close #2329
This commit is contained in:
commit
b57c9a51f8
@ -23,8 +23,10 @@ const settings = require('../models/settings')
|
||||
|
||||
resinCorvus.install({
|
||||
services: {
|
||||
sentry: _.get(packageJSON, [ 'analytics', 'sentry', 'token' ]),
|
||||
mixpanel: _.get(packageJSON, [ 'analytics', 'mixpanel', 'token' ])
|
||||
sentry: process.env.ANALYTICS_SENTRY_TOKEN ||
|
||||
_.get(packageJSON, [ 'analytics', 'sentry', 'token' ]),
|
||||
mixpanel: process.env.ANALYTICS_MIXPANEL_TOKEN ||
|
||||
_.get(packageJSON, [ 'analytics', 'mixpanel', 'token' ])
|
||||
},
|
||||
options: {
|
||||
release: packageJSON.version,
|
||||
|
Loading…
x
Reference in New Issue
Block a user