> ## Documentation Index
> Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 기능 플래그

기능 플래그는 실험적 기능을 숨기는 데 사용됩니다. Twenty의 경우, 사용자 수준이 아니라 워크스페이스 수준에서 설정됩니다.

## 새로운 기능 플래그 추가

`FeatureFlagKey.ts`에 기능 플래그 추가:

```ts theme={null}
type FeatureFlagKey =
  | 'IS_FEATURENAME_ENABLED'
  | ...;
```

또한 `feature-flag.entity.ts`의 열거형에 추가하십시오:

```ts theme={null}
enum FeatureFlagKeys {
    IsFeatureNameEnabled = 'IS_FEATURENAME_ENABLED',
    ...
}
```

**백엔드** 기능에 기능 플래그를 적용하려면 다음을 사용하십시오:

```ts theme={null}
@Gate({
  featureFlag: 'IS_FEATURENAME_ENABLED',
})
```

**프론트엔드** 기능에 기능 플래그를 적용하려면 다음을 사용하십시오:

```ts theme={null}
const isFeatureNameEnabled = useIsFeatureEnabled('IS_FEATURENAME_ENABLED');
```

## 배포를 위한 기능 플래그 구성

테이블 `core.featureFlag`의 해당 레코드 변경:

| id | 키                        | workspaceId | 값   |
| -- | ------------------------ | ----------- | --- |
| 임의 | `IS_FEATURENAME_ENABLED` | WorkspaceID | `참` |
