feat(client): add daily challenges (#60867)

Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
Tom
2025-07-28 13:08:10 -05:00
committed by GitHub
parent 2cdd62b00b
commit bde1e6f81b
43 changed files with 1607 additions and 114 deletions
+2 -1
View File
@@ -64,7 +64,8 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
'curriculumLocale',
'deploymentEnv',
'environment',
'showUpcomingChanges'
'showUpcomingChanges',
'showDailyCodingChallenges'
];
const searchKeys = ['algoliaAppId', 'algoliaAPIKey'];
const donationKeys = ['stripePublicKey', 'paypalClientId', 'patreonClientId'];
+2
View File
@@ -32,6 +32,7 @@ const {
PATREON_CLIENT_ID: patreonClientId,
DEPLOYMENT_ENV: deploymentEnv,
SHOW_UPCOMING_CHANGES: showUpcomingChanges,
SHOW_DAILY_CODING_CHALLENGES: showDailyCodingChallenges,
GROWTHBOOK_URI: growthbookUri
} = process.env;
@@ -71,6 +72,7 @@ export default Object.assign(locations, {
? null
: patreonClientId,
showUpcomingChanges: showUpcomingChanges === 'true',
showDailyCodingChallenges: showDailyCodingChallenges === 'true',
growthbookUri:
!growthbookUri || growthbookUri === 'api_URI_from_Growthbook_dashboard'
? null