Files
supabase/apps/www/lib/supabase.ts
Joshen Lim 3963cbdf8f Gracefully handle feature flag set up (#38394)
* Gracefully handle feature flag set up

* Update FeatureFlagProvider to support granular provider toggling, and make getConfigCatFlags an optional prop

* Nit

* Fix TS
2025-09-10 12:00:16 +08:00

19 lines
396 B
TypeScript

import { createClient } from '@supabase/supabase-js'
import { Database } from './database.types'
const supabase = createClient<Database>(
process.env.NEXT_PUBLIC_SUPABASE_URL ?? '',
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY ?? '',
{
realtime: {
params: {
eventsPerSecond: 1000,
},
},
}
)
export type SupabaseClient = typeof supabase
export default supabase