Saltar al contenido principal
Header
Feature flags are used to hide experimental features. Para Twenty, se configuran a nivel de espacio de trabajo y no a nivel de usuario.

Adding a new feature flag

In FeatureFlagKey.ts add the feature flag:
type FeatureFlagKey =
  | 'IS_FEATURENAME_ENABLED'
  | ...;
También agrégalo al enum en feature-flag.entity.ts:
enum FeatureFlagKeys {
    IsFeatureNameEnabled = 'IS_FEATURENAME_ENABLED',
    ...
}
To apply a feature flag on a backend feature use:
@Gate({
  featureFlag: 'IS_FEATURENAME_ENABLED',
})
To apply a feature flag on a frontend feature use:
const isFeatureNameEnabled = useIsFeatureEnabled('IS_FEATURENAME_ENABLED');

Configure feature flags for the deployment

Cambie el registro correspondiente en la Tabla core.featureFlag:
iDclaveworkspaceIdvalor
AleatorioIS_FEATURENAME_ENABLEDID del espacio de trabajoverdadero