Explorar el Código

rename sentry is environement variable to make it accessible in browser

Abhinav hace 3 años
padre
commit
1aec53311d
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      sentryConfigUtil.js

+ 3 - 3
sentryConfigUtil.js

@@ -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';