From 482b1d32f4c202f82317e3cb10612d25abea8f8a Mon Sep 17 00:00:00 2001 From: sriramveeraghanta Date: Wed, 22 Feb 2023 00:51:19 +0530 Subject: [PATCH] env fixes --- apps/app/next.config.js | 2 +- apps/app/pages/signin.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app/next.config.js b/apps/app/next.config.js index 89c00d7011c..ed883e597e8 100644 --- a/apps/app/next.config.js +++ b/apps/app/next.config.js @@ -18,7 +18,7 @@ const nextConfig = { }, }; -if (process.env.NEXT_PUBLIC_ENABLE_SENTRY) { +if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0")) { module.exports = withSentryConfig(nextConfig, { silent: true }, { hideSourceMaps: true }); } else { module.exports = nextConfig; diff --git a/apps/app/pages/signin.tsx b/apps/app/pages/signin.tsx index fff701679b0..231a3cbd939 100644 --- a/apps/app/pages/signin.tsx +++ b/apps/app/pages/signin.tsx @@ -113,7 +113,7 @@ const SignInPage: NextPage = () => { Sign in to your account
- {Boolean(process.env.NEXT_PUBLIC_ENABLE_OAUTH) ? ( + {parseInt(process.env.NEXT_PUBLIC_ENABLE_OAUTH || "0") ? ( <>