mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +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({
|
resinCorvus.install({
|
||||||
services: {
|
services: {
|
||||||
sentry: _.get(packageJSON, [ 'analytics', 'sentry', 'token' ]),
|
sentry: process.env.ANALYTICS_SENTRY_TOKEN ||
|
||||||
mixpanel: _.get(packageJSON, [ 'analytics', 'mixpanel', 'token' ])
|
_.get(packageJSON, [ 'analytics', 'sentry', 'token' ]),
|
||||||
|
mixpanel: process.env.ANALYTICS_MIXPANEL_TOKEN ||
|
||||||
|
_.get(packageJSON, [ 'analytics', 'mixpanel', 'token' ])
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
release: packageJSON.version,
|
release: packageJSON.version,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user