mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
feat(gui): Add ability to set analytics tokens via env
This adds the ability to set the Sentry & Mixpanel API tokens via environment variables. Change-Type: patch
This commit is contained in:
parent
196f16b941
commit
150e8112ea
@ -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