ente/sentryConfigUtil.js

12 lines
305 B
JavaScript
Raw Normal View History

2023-01-14 16:11:35 +00:00
const ENV_DEVELOPMENT = 'development';
module.exports.getIsSentryEnabled = () => {
2023-01-14 16:11:35 +00:00
if (process.env.NEXT_PUBLIC_SENTRY_ENV === ENV_DEVELOPMENT) {
return false;
} else if (process.env.NEXT_PUBLIC_DISABLE_SENTRY === 'true') {
return false;
2022-01-07 12:47:24 +00:00
} else {
2023-01-14 16:11:35 +00:00
return true;
2022-01-07 12:47:24 +00:00
}
};