diff --git a/apps/help-center/config.js b/apps/help-center/config.js index 592ce506d03cb..0e3af36b25f36 100644 --- a/apps/help-center/config.js +++ b/apps/help-center/config.js @@ -5,13 +5,15 @@ import { } from '@automattic/zendesk-client/src/constants'; const isProxied = typeof helpCenterData !== 'undefined' && helpCenterData?.isProxied; +const flags = new URLSearchParams( window.location.search ).get( 'flags' ); +const isHelpCenterExperienceEnabled = flags?.includes( 'help-center-experience' ) ?? false; window.configData = { env_id: isProxied ? 'staging' : 'production', zendesk_support_chat_key: isProxied ? ZENDESK_STAGING_SUPPORT_CHAT_KEY : ZENDESK_SUPPORT_CHAT_KEY, features: { 'help/gpt-response': true, - 'help-center-experience': false, + 'help-center-experience': isHelpCenterExperienceEnabled, }, wapuu: false, };