()
| 33 | * - If unset, GrowthBook gate (tengu_pid_based_version_locking) controls rollout |
| 34 | */ |
| 35 | export function isPidBasedLockingEnabled(): boolean { |
| 36 | const envVar = process.env.ENABLE_PID_BASED_VERSION_LOCKING |
| 37 | // If env var is explicitly set, respect it |
| 38 | if (isEnvTruthy(envVar)) { |
| 39 | return true |
| 40 | } |
| 41 | if (isEnvDefinedFalsy(envVar)) { |
| 42 | return false |
| 43 | } |
| 44 | // GrowthBook controls gradual rollout (returns false for external users) |
| 45 | return getFeatureValue_CACHED_MAY_BE_STALE( |
| 46 | 'tengu_pid_based_version_locking', |
| 47 | false, |
| 48 | ) |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Content stored in a version lock file |
no test coverage detected