ente/sentryConfigUtil.js
2022-01-07 18:17:24 +05:30

11 lines
305 B
JavaScript

module.exports.isSentryEnabled = () => {
if (process.env.SENTRY_ENABLED) {
return process.env.SENTRY_ENABLED === 'yes';
} else {
if (process.env.NEXT_PUBLIC_SENTRY_ENV) {
return process.env.NEXT_PUBLIC_SENTRY_ENV !== 'development';
}
}
return false;
};