This repository has no description
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}