rename sentry is environement variable to make it accessible in browser

This commit is contained in:
Abhinav 2022-01-09 13:50:52 +05:30
parent 5d3e284fcd
commit 1aec53311d

View file

@ -1,6 +1,6 @@
module.exports.isSentryEnabled = () => {
if (process.env.SENTRY_ENABLED) {
return process.env.SENTRY_ENABLED === 'yes';
module.exports.getIsSentryEnabled = () => {
if (process.env.NEXT_PUBLIC_IS_SENTRY_ENABLED) {
return process.env.NEXT_PUBLIC_IS_SENTRY_ENABLED === 'yes';
} else {
if (process.env.NEXT_PUBLIC_SENTRY_ENV) {
return process.env.NEXT_PUBLIC_SENTRY_ENV !== 'development';