Only use sentry config on production releases

main
Chris Vickery 2018-05-07 18:25:59 -07:00
parent 047b18b1cb
commit 5cd1993d24
1 changed files with 15 additions and 11 deletions

View File

@ -20,6 +20,9 @@ module.exports = function override(config, env) {
if (env === "production") {
const COMMIT = process.env.TRAVIS_COMMIT || process.env.COMMIT_REF;
const tagName = process.env.TRAVIS_TAG;
// only use sentry on production builds
if (tagName && tagName.length) {
config.plugins.push(
new SentryPlugin({
organisation: "commaai",
@ -32,6 +35,7 @@ module.exports = function override(config, env) {
})
);
}
}
return config;
};