ente/sentryConfigUtil.js

12 lines
293 B
JavaScript
Raw Normal View History

2022-09-23 10:52:47 +00:00
const ENV_DEVELOPMENT = 'development';
module.exports.getIsSentryEnabled = () => {
2022-09-23 11:45:44 +00:00
if (process.env.NEXT_PUBLIC_SENTRY_ENV === ENV_DEVELOPMENT) {
return false;
} else if (process.env.DISABLE_SENTRY === 'true') {
return false;
2022-01-07 12:47:24 +00:00
} else {
2022-09-23 11:45:44 +00:00
return true;
2022-01-07 12:47:24 +00:00
}
};