mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 21:29:34 +00:00
feat(cli): hyperframes pick — open the design picker, gated behind feature flag
This commit is contained in:
@@ -12,3 +12,14 @@ export function isDevMode(): boolean {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Feature flag — design picker (`hyperframes pick`, skill picker assets).
|
||||
* Enabled when HYPERFRAMES_DESIGN_PICKER is set to "1" / "true" / "on" (case-insensitive),
|
||||
* or whenever running in dev mode so contributors can iterate without setting env vars.
|
||||
*/
|
||||
export function isDesignPickerEnabled(): boolean {
|
||||
if (isDevMode()) return true;
|
||||
var v = (process.env.HYPERFRAMES_DESIGN_PICKER || "").trim().toLowerCase();
|
||||
return v === "1" || v === "true" || v === "on" || v === "yes";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user