mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-21 08:17:10 +08:00
fix: add field polyfill for old feature (#5586)
This commit is contained in:
@@ -4,5 +4,8 @@ import { FeatureType } from './common';
|
|||||||
|
|
||||||
export const featureEarlyAccess = z.object({
|
export const featureEarlyAccess = z.object({
|
||||||
feature: z.literal(FeatureType.EarlyAccess),
|
feature: z.literal(FeatureType.EarlyAccess),
|
||||||
configs: z.object({}),
|
configs: z.object({
|
||||||
|
// field polyfill, make it optional in the future
|
||||||
|
whitelist: z.string().array(),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -42,7 +42,9 @@ export const Features: Feature[] = [
|
|||||||
feature: FeatureType.EarlyAccess,
|
feature: FeatureType.EarlyAccess,
|
||||||
type: FeatureKind.Feature,
|
type: FeatureKind.Feature,
|
||||||
version: 2,
|
version: 2,
|
||||||
configs: {},
|
configs: {
|
||||||
|
whitelist: [],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
feature: FeatureType.UnlimitedWorkspace,
|
feature: FeatureType.UnlimitedWorkspace,
|
||||||
|
|||||||
Reference in New Issue
Block a user