fix: add field polyfill for old feature (#5586)

This commit is contained in:
DarkSky 2024-01-15 08:33:05 +00:00
parent 4c49b62ab7
commit 2f9b4fd0cf
No known key found for this signature in database
GPG Key ID: 97B7D036B1566E9D
2 changed files with 7 additions and 2 deletions

View File

@ -4,5 +4,8 @@ import { FeatureType } from './common';
export const featureEarlyAccess = z.object({
feature: z.literal(FeatureType.EarlyAccess),
configs: z.object({}),
configs: z.object({
// field polyfill, make it optional in the future
whitelist: z.string().array(),
}),
});

View File

@ -42,7 +42,9 @@ export const Features: Feature[] = [
feature: FeatureType.EarlyAccess,
type: FeatureKind.Feature,
version: 2,
configs: {},
configs: {
whitelist: [],
},
},
{
feature: FeatureType.UnlimitedWorkspace,