sentryConfigUtil.js 305 B

1234567891011
  1. const ENV_DEVELOPMENT = 'development';
  2. module.exports.getIsSentryEnabled = () => {
  3. if (process.env.NEXT_PUBLIC_SENTRY_ENV === ENV_DEVELOPMENT) {
  4. return false;
  5. } else if (process.env.NEXT_PUBLIC_DISABLE_SENTRY === 'true') {
  6. return false;
  7. } else {
  8. return true;
  9. }
  10. };