mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
Revert "Merge pull request #42 from toeverything/feat/sub-page"
This reverts commitcf6491fb0c, reversing changes made toe12deb302f.
This commit is contained in:
@@ -2,15 +2,7 @@
|
||||
|
||||
## Usage
|
||||
|
||||
- Set token at environment variable
|
||||
- The key can be obtained from the [Feature Flag Portal](https://portal.featureflag.co/account-settings/projects)
|
||||
|
||||
```shell
|
||||
# .env.local
|
||||
AFFINE_FEATURE_FLAG_TOKEN=XXXXXXX
|
||||
```
|
||||
|
||||
- Set provider
|
||||
- set provider
|
||||
|
||||
```tsx
|
||||
import { FeatureFlagsProvider } from '@toeverything/datasource/feature-flags';
|
||||
@@ -50,8 +42,7 @@ const App = () => {
|
||||
|
||||
**When entering development mode feature flag will NOT be updated in real time**
|
||||
|
||||
- `activateFfcDevMode(PASSWORD)` play with feature flags locally
|
||||
- The `devModePassword` can be obtained from `src/config.ts`
|
||||
- `activateFfcDevMode()` play with feature flags locally
|
||||
- `quitFfcDevMode()` quit dev mode
|
||||
|
||||
## Running unit tests
|
||||
|
||||
@@ -8,18 +8,4 @@ export const config: IOption = {
|
||||
// id: 'the user's unique identifier'
|
||||
// }
|
||||
devModePassword: '-',
|
||||
enableDataSync: !!process.env['AFFINE_FEATURE_FLAG_TOKEN'],
|
||||
// bootstrap: [
|
||||
// {
|
||||
// // the feature flag key
|
||||
// id: 'flag',
|
||||
// // the feature flag value
|
||||
// variation: false,
|
||||
// // the variation data type, string is used if not provided
|
||||
// variationType: VariationDataType.boolean,
|
||||
// variationOptions: [],
|
||||
// timestamp: 0,
|
||||
// sendToExperiment: false,
|
||||
// },
|
||||
// ],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user