mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-14 07:00:51 -04:00
feat(api): add deployment version endpoint (#59841)
This commit is contained in:
committed by
GitHub
parent
aef4729ce3
commit
ae720e8282
@@ -90,6 +90,7 @@ if (process.env.FREECODECAMP_NODE_ENV !== 'development') {
|
||||
assert.notEqual(process.env.COOKIE_SECRET, 'a_cookie_secret');
|
||||
assert.ok(process.env.SENTRY_DSN);
|
||||
assert.ok(process.env.SENTRY_ENVIRONMENT);
|
||||
assert.ok(process.env.DEPLOYMENT_VERSION);
|
||||
// The following values can exist in development, but production-like
|
||||
// environments need to override the defaults.
|
||||
assert.notEqual(
|
||||
@@ -210,3 +211,4 @@ function undefinedOrBool(val: string | undefined): undefined | boolean {
|
||||
}
|
||||
export const SCREENSHOT_SERVICE_LOCATION =
|
||||
process.env.SCREENSHOT_SERVICE_LOCATION;
|
||||
export const DEPLOYMENT_VERSION = process.env.DEPLOYMENT_VERSION || 'unknown';
|
||||
|
||||
Reference in New Issue
Block a user