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
495 B 19 lines
1import { getServerAuthStatus } from './serverAuth'; 2import { INTERNAL_HANDLES } from './userLists'; 3 4export async function getServerFeatureFlags() { 5 const { user } = await getServerAuthStatus(); 6 7 const show = 8 process.env.VERCEL_ENV !== 'production' || 9 (user?.handle && INTERNAL_HANDLES.includes(user.handle)); 10 11 return { 12 cardSearch: show, 13 urlTypeFilter: show, 14 leafletMentions: show, 15 animatedLandingTitle: show, 16 openCollections: true, 17 following: show, 18 }; 19}