Skip to content

Commit

Permalink
Help Center: second attempt feature flag (#96249)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcangelini authored Nov 11, 2024
1 parent bff5999 commit 4c7f75f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/help-center/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

0 comments on commit 4c7f75f

Please sign in to comment.