12 lines
293 B
JavaScript
12 lines
293 B
JavaScript
const ENV_DEVELOPMENT = 'development';
|
|
|
|
module.exports.getIsSentryEnabled = () => {
|
|
if (process.env.NEXT_PUBLIC_SENTRY_ENV === ENV_DEVELOPMENT) {
|
|
return false;
|
|
} else if (process.env.DISABLE_SENTRY === 'true') {
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
};
|