From 1aec53311d2c20350148d3a8403715315ffef91b Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 9 Jan 2022 13:50:52 +0530 Subject: [PATCH] rename sentry is environement variable to make it accessible in browser --- sentryConfigUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sentryConfigUtil.js b/sentryConfigUtil.js index d8f5da7a3..1b19f2f6b 100644 --- a/sentryConfigUtil.js +++ b/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';