mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat: add githash as query param (#49960)
This commit is contained in:
committed by
GitHub
parent
1d8e9fb0b7
commit
5ea1f4fffc
@@ -57,13 +57,15 @@ if (FREECODECAMP_NODE_ENV !== 'development') {
|
||||
const donationKeys = ['stripePublicKey', 'paypalClientId', 'patreonClientId'];
|
||||
const loggingKeys = ['sentryClientDSN'];
|
||||
const abTestingKeys = ['growthbookUri'];
|
||||
const diagnosticKeys = ['gitHash'];
|
||||
|
||||
const expectedVariables = locationKeys.concat(
|
||||
deploymentKeys,
|
||||
searchKeys,
|
||||
donationKeys,
|
||||
loggingKeys,
|
||||
abTestingKeys
|
||||
abTestingKeys,
|
||||
diagnosticKeys
|
||||
);
|
||||
const actualVariables = Object.keys(env as Record<string, unknown>);
|
||||
if (expectedVariables.length !== actualVariables.length) {
|
||||
|
||||
Reference in New Issue
Block a user