浏览代码

rename sentry is environement variable to make it accessible in browser

Abhinav 3 年之前
父节点
当前提交
1aec53311d
共有 1 个文件被更改,包括 3 次插入3 次删除
  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';