fix(curriculum): control visibility via env
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
68aef571ee
commit
9b297ed76d
@ -128,6 +128,12 @@ async function createChallenge(fullPath, maybeMeta) {
|
|||||||
challenge.template = template;
|
challenge.template = template;
|
||||||
challenge.time = time;
|
challenge.time = time;
|
||||||
|
|
||||||
|
// challenges can be hidden (so they do not appear in all environments e.g.
|
||||||
|
// production), SHOW_HIDDEN controls this.
|
||||||
|
if (process.env.SHOW_HIDDEN === 'true') {
|
||||||
|
challenge.isHidden = false;
|
||||||
|
}
|
||||||
|
|
||||||
return challenge;
|
return challenge;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,3 +53,6 @@ GHOST_CLIENT_KEY=123abc
|
|||||||
|
|
||||||
SENTRY_DSN=dsn_from_sentry_dashboard
|
SENTRY_DSN=dsn_from_sentry_dashboard
|
||||||
SENTRY_ENVIRONMENT='staging'
|
SENTRY_ENVIRONMENT='staging'
|
||||||
|
|
||||||
|
# Set this to false to see what the production site will contain
|
||||||
|
SHOW_HIDDEN=true
|
||||||
|
Reference in New Issue
Block a user