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.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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user