Only use sentry config on production releases
parent
047b18b1cb
commit
5cd1993d24
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue