This repository has no description
0

Configure Feed

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

semble / src / webapp / app / api / feature-flags / route.ts
668 B 23 lines
1import { getServerFeatureFlags } from '@/lib/serverFeatureFlags'; 2import { NextResponse } from 'next/server'; 3 4export async function GET() { 5 try { 6 const featureFlags = await getServerFeatureFlags(); 7 return NextResponse.json(featureFlags); 8 } catch (error) { 9 console.error('Error fetching feature flags:', error); 10 // Return default flags if there's an error 11 return NextResponse.json({ 12 cardSearch: false, 13 urlTypeFilter: false, 14 leafletMentions: false, 15 animatedLandingTitle: false, 16 openCollections: false, 17 following: false, 18 connections: false, 19 graphView: false, 20 readerMode: false, 21 }); 22 } 23}