From 2f6974eda8559a21bad5577f45c3cfaf02c28826 Mon Sep 17 00:00:00 2001 From: "Richard Kuo (Danswer)" Date: Wed, 18 Dec 2024 11:21:05 -0800 Subject: [PATCH] fix some testing vars --- .../app/admin/connectors/[connector]/AddConnectorPage.tsx | 7 ++++--- web/src/lib/constants.ts | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx b/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx index 6beb23f2ea2..534fae2814a 100644 --- a/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx +++ b/web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx @@ -51,7 +51,7 @@ import { prepareOAuthAuthorizationRequest } from "@/lib/oauth_utils"; import { EE_ENABLED, NEXT_PUBLIC_CLOUD_ENABLED, - TEST_ENV, + NEXT_PUBLIC_TEST_ENV, } from "@/lib/constants"; import TemporaryLoadingModal from "@/components/TemporaryLoadingModal"; import { getConnectorOauthRedirectUrl } from "@/lib/connectors/oauth"; @@ -131,7 +131,7 @@ export default function AddConnector({ setCurrentPageUrl(window.location.href); } - if (EE_ENABLED && (NEXT_PUBLIC_CLOUD_ENABLED || TEST_ENV)) { + if (EE_ENABLED && (NEXT_PUBLIC_CLOUD_ENABLED || NEXT_PUBLIC_TEST_ENV)) { const sourceMetadata = getSourceMetadata(connector); if (sourceMetadata?.oauthSupported == true) { setIsAuthorizeVisible(true); @@ -473,7 +473,8 @@ export default function AddConnector({ {/* Button to sign in via OAuth */} {oauthSupportedSources.includes(connector) && - NEXT_PUBLIC_CLOUD_ENABLED && ( + (NEXT_PUBLIC_CLOUD_ENABLED || + NEXT_PUBLIC_TEST_ENV) && (