mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-24 12:24:17 +00:00
18 lines
891 B
TypeScript
18 lines
891 B
TypeScript
// Registry of every feature flag key the UI reads. Side-effect free and
|
|
// SDK-agnostic so both client and server readers can import it. Every key
|
|
// lives here, including the ones only the cloud fork reads, so the registry
|
|
// never diverges between repos.
|
|
export const FEATURE_FLAG = {
|
|
// Multivariate flag deciding which skill launcher the finding detail drawer
|
|
// renders ("card" | "dropdown").
|
|
SKILL_LAUNCHER: "finding-detail-skill-launcher",
|
|
// Boolean flag gating the experimental Issues feature (contextual findings).
|
|
// Read by cloud only.
|
|
ISSUES: "issues-feature",
|
|
// Boolean flag evaluated server-side per tenant in cloud. When on, it pins
|
|
// the tenant to legacy billing; off or absent means the new Metronome system.
|
|
BILLING_SYSTEM_METRONOME: "BILLING_SYSTEM_METRONOME",
|
|
} as const;
|
|
|
|
export type FeatureFlag = (typeof FEATURE_FLAG)[keyof typeof FEATURE_FLAG];
|