[Glitch] Remove collections client-side feature flag

Port f90f1e3b75f5bb53716bf264a5957eab9e85f1d0 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion 2026-04-02 15:53:47 +02:00 committed by Claire
parent 4028172753
commit 093858e31a
2 changed files with 3 additions and 9 deletions

View File

@ -1,11 +1,5 @@
import {
isClientFeatureEnabled,
isServerFeatureEnabled,
} from '@/flavours/glitch/utils/environment';
import { isServerFeatureEnabled } from '@/flavours/glitch/utils/environment';
export function areCollectionsEnabled() {
return (
isClientFeatureEnabled('collections') &&
isServerFeatureEnabled('collections')
);
return isServerFeatureEnabled('collections');
}

View File

@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
return initialState?.features.includes(feature) ?? false;
}
type ClientFeatures = 'collections';
type ClientFeatures = never;
export function isClientFeatureEnabled(feature: ClientFeatures) {
try {