feat: versioned endpoints on client (#63441)

This commit is contained in:
Mrugesh Mohapatra
2025-11-04 05:05:23 +05:30
committed by GitHub
parent 88fa4039b9
commit c801dcdbcb
9 changed files with 267 additions and 2 deletions
+1
View File
@@ -63,6 +63,7 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
'clientLocale',
'curriculumLocale',
'deploymentEnv',
'deploymentVersion',
'environment',
'showUpcomingChanges'
];
+4 -2
View File
@@ -32,7 +32,8 @@ const {
PATREON_CLIENT_ID: patreonClientId,
DEPLOYMENT_ENV: deploymentEnv,
SHOW_UPCOMING_CHANGES: showUpcomingChanges,
GROWTHBOOK_URI: growthbookUri
GROWTHBOOK_URI: growthbookUri,
DEPLOYMENT_VERSION: deploymentVersion
} = process.env;
const locations = {
@@ -74,5 +75,6 @@ export default Object.assign(locations, {
growthbookUri:
!growthbookUri || growthbookUri === 'api_URI_from_Growthbook_dashboard'
? null
: growthbookUri
: growthbookUri,
deploymentVersion: deploymentVersion || 'unknown'
});