mirror of
https://github.com/supabase/supabase.git
synced 2026-05-10 10:50:18 -04:00
3963cbdf8f
* Gracefully handle feature flag set up * Update FeatureFlagProvider to support granular provider toggling, and make getConfigCatFlags an optional prop * Nit * Fix TS
19 lines
396 B
TypeScript
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
|