feat: add curriculum feature flag (#44441)

This commit is contained in:
Nicholas Carrigan (he/him)
2021-12-09 10:31:03 -08:00
committed by GitHub
parent 88524556e7
commit dd2ff1683c
3 changed files with 18 additions and 9 deletions

View File

@ -31,7 +31,8 @@ const {
PAYPAL_CLIENT_ID: paypalClientId,
PATREON_CLIENT_ID: patreonClientId,
DEPLOYMENT_ENV: deploymentEnv,
SHOW_UPCOMING_CHANGES: showUpcomingChanges
SHOW_UPCOMING_CHANGES: showUpcomingChanges,
SHOW_NEW_CURRICULUM: showNewCurriculum
} = process.env;
const locations = {
@ -70,5 +71,6 @@ module.exports = Object.assign(locations, {
!patreonClientId || patreonClientId === 'id_from_patreon_dashboard'
? null
: patreonClientId,
showUpcomingChanges: showUpcomingChanges === 'true'
showUpcomingChanges: showUpcomingChanges === 'true',
showNewCurriculum: showNewCurriculum === 'true'
});