Skip to content

Commit 5b632e7

Browse files
committed
feat(webapp): add compute migration feature flags
1 parent 7094771 commit 5b632e7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/webapp/app/v3/featureFlags.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ export const FEATURE_FLAG = {
1111
mollifierEnabled: "mollifierEnabled",
1212
workerQueueScheduledSplitEnabled: "workerQueueScheduledSplitEnabled",
1313
realtimeBackend: "realtimeBackend",
14+
computeMigrationEnabled: "computeMigrationEnabled",
15+
computeMigrationFreePercentage: "computeMigrationFreePercentage",
16+
computeMigrationPaidPercentage: "computeMigrationPaidPercentage",
1417
} as const;
1518

1619
export const FeatureFlagCatalog = {
@@ -27,6 +30,9 @@ export const FeatureFlagCatalog = {
2730
// globally and per-org (org wins). Defaults to "electric" when unset.
2831
// "shadow" serves Electric but diffs the native path in the background.
2932
[FEATURE_FLAG.realtimeBackend]: z.enum(["electric", "native", "shadow"]),
33+
[FEATURE_FLAG.computeMigrationEnabled]: z.coerce.boolean(),
34+
[FEATURE_FLAG.computeMigrationFreePercentage]: z.coerce.number().int().min(0).max(100),
35+
[FEATURE_FLAG.computeMigrationPaidPercentage]: z.coerce.number().int().min(0).max(100),
3036
};
3137

3238
export type FeatureFlagKey = keyof typeof FeatureFlagCatalog;

0 commit comments

Comments
 (0)