mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-30 16:01:14 -04:00
chore(api): throw if growthbook env vars are missing (#59873)
This commit is contained in:
committed by
GitHub
parent
6d2bd79145
commit
cc1b31f59d
@@ -127,11 +127,19 @@ if (process.env.FREECODECAMP_NODE_ENV !== 'development') {
|
||||
'client_secret_from_auth0_dashboard',
|
||||
'The Auth0 client secret should be changed from the default value.'
|
||||
);
|
||||
assert.ok(
|
||||
process.env.GROWTHBOOK_FASTIFY_API_HOST,
|
||||
'GROWTHBOOK_FASTIFY_API_HOST should be set.'
|
||||
);
|
||||
assert.notEqual(
|
||||
process.env.GROWTHBOOK_FASTIFY_API_HOST,
|
||||
'fastify_api_sdk_api_host_from_growthbook_dashboard',
|
||||
'The GROWTHBOOK_FASTIFY_API_HOST env should be changed from the default value.'
|
||||
);
|
||||
assert.ok(
|
||||
process.env.GROWTHBOOK_FASTIFY_CLIENT_KEY,
|
||||
'GROWTHBOOK_FASTIFY_CLIENT_KEY should be set.'
|
||||
);
|
||||
assert.notEqual(
|
||||
process.env.GROWTHBOOK_FASTIFY_CLIENT_KEY,
|
||||
'fastify_api_sdk_client_key_from_growthbook_dashboard',
|
||||
|
||||
Reference in New Issue
Block a user