From 2cadb3784bb88d75a74ade343f61cca4173dcbe4 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Wed, 22 Feb 2023 00:53:22 +0530 Subject: [PATCH] env fixes (#316) --- 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 89c00d701..ed883e597 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 fff701679..231a3cbd9 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") ? ( <>