Profile redesign: Switch to server flag (#37876)

This commit is contained in:
Echo
2026-02-16 13:06:49 +00:00
committed by GitHub
parent f199d7995c
commit f7bf804a3f
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ export function isProduction() {
else return import.meta.env.PROD;
}
export type ServerFeatures = 'fasp' | 'collections';
export type ServerFeatures = 'fasp' | 'collections' | 'profile_redesign';
export function isServerFeatureEnabled(feature: ServerFeatures) {
return initialState?.features.includes(feature) ?? false;
}
type ClientFeatures = 'profile_redesign' | 'collections';
type ClientFeatures = 'collections';
export function isClientFeatureEnabled(feature: ClientFeatures) {
try {