Files
twenty/packages/twenty-docs/l/ko/developers/backend-development/feature-flags.mdx
T
8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

52 lines
1.2 KiB
Plaintext

---
title: 기능 플래그
image: /images/user-guide/table-views/table.png
---
<Frame>
<img src="/images/user-guide/table-views/table.png" alt="Header" />
</Frame>
기능 플래그는 실험적 기능을 숨기는 데 사용됩니다. For Twenty, they are set on workspace level and not on a user level.
## 새로운 기능 플래그 추가
`FeatureFlagKey.ts`에 기능 플래그 추가:
```ts
type FeatureFlagKey =
| 'IS_FEATURENAME_ENABLED'
| ...;
```
또한 `feature-flag.entity.ts`의 열거형에 추가하십시오:
```ts
enum FeatureFlagKeys {
IsFeatureNameEnabled = 'IS_FEATURENAME_ENABLED',
...
}
```
**백엔드** 기능에 기능 플래그를 적용하려면 다음을 사용하십시오:
```ts
@Gate({
featureFlag: 'IS_FEATURENAME_ENABLED',
})
```
**프론트엔드** 기능에 기능 플래그를 적용하려면 다음을 사용하십시오:
```ts
const isFeatureNameEnabled = useIsFeatureEnabled('IS_FEATURENAME_ENABLED');
```
## 배포를 위한 기능 플래그 구성
테이블 `core.featureFlag`의 해당 레코드 변경:
| id | 키 | workspaceId | 값 |
| -- | ------------------------ | ----------- | --- |
| 임의 | `IS_FEATURENAME_ENABLED` | WorkspaceID | `참` |