2022-09-23 10:52:47 +00:00
|
|
|
const ENV_DEVELOPMENT = 'development';
|
|
|
|
|
2022-01-09 08:20:52 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
};
|