This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / webapp / lib / serverFeatureFlags.ts
789 B 31 lines
1import { getServerAuthStatus } from './serverAuth'; 2import { 3 TEAM_HANDLES, 4 EARLY_TESTERS_HANDLES, 5} from '../../shared/constants/featureFlags'; 6 7export async function getServerFeatureFlags() { 8 const { user } = await getServerAuthStatus(); 9 10 const show = 11 process.env.VERCEL_ENV !== 'production' || 12 (user?.handle && 13 (EARLY_TESTERS_HANDLES.has(user.handle) || 14 TEAM_HANDLES.has(user.handle))); 15 16 const showForTeam = 17 process.env.VERCEL_ENV !== 'production' || 18 (user?.handle && TEAM_HANDLES.has(user.handle)); 19 20 return { 21 cardSearch: show, 22 urlTypeFilter: show, 23 leafletMentions: show, 24 animatedLandingTitle: show, 25 openCollections: true, 26 following: true, 27 connections: true, 28 graphView: false, 29 readerMode: showForTeam, 30 }; 31}