This repository has no description
1import { getServerAuthStatus } from './serverAuth';
2
3const APPROVED_HANDLES = new Set([
4 'wesleyfinck.org',
5 'ronentk.me',
6 'pouriade.com',
7 'bmann.ca',
8 'tynanpurdy.com',
9 'erlend.sh',
10 'tgoerke.bsky.social',
11 'psingletary.com',
12 'hilarybaumann.com',
13 'cosmik.network',
14 'semble.so',
15 'atproto.science',
16]);
17
18export async function getServerFeatureFlags() {
19 const { user } = await getServerAuthStatus();
20
21 const show =
22 process.env.VERCEL_ENV !== 'production' ||
23 (user?.handle && APPROVED_HANDLES.has(user.handle));
24
25 return {
26 cardSearch: show,
27 urlTypeFilter: show,
28 leafletMentions: show,
29 animatedLandingTitle: show,
30 openCollections: show,
31 };
32}