MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / getSupabaseClient

Function getSupabaseClient

website/src/lib/supabase-client.ts:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9/** Single Supabase client for realtime tunnels (avoids duplicate GoTrueClient warnings). */
10export function getSupabaseClient(): SupabaseClient {
11 if (sharedClient) return sharedClient;
12
13 const url = import.meta.env.VITE_SUPABASE_URL || DEFAULT_URL;
14 const anonKey = import.meta.env.VITE_SUPABASE_ANON_KEY || DEFAULT_ANON_KEY;
15 sharedClient = createClient(url, anonKey, {
16 realtime: { params: { eventsPerSecond: 10 } },
17 });
18 return sharedClient;
19}

Callers 3

Footer.tsxFile · 0.90
startMethod · 0.90
stopMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected