Home / Function/ getSupavisorConfig() — supabase Function Reference

getSupavisorConfig() — supabase Function Reference

Architecture documentation for the getSupavisorConfig() function in pooler.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  7de890a2_0d3e_5e2e_d7dd_bfae6e782061["getSupavisorConfig()"]
  397134a9_d1d8_0df4_8090_856586d27c9d["useSupavisorConfigQuery()"]
  397134a9_d1d8_0df4_8090_856586d27c9d -->|calls| 7de890a2_0d3e_5e2e_d7dd_bfae6e782061
  style 7de890a2_0d3e_5e2e_d7dd_bfae6e782061 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/fetch/pooler.ts lines 14–24

async function getSupavisorConfig({ projectRef }: SupavisorConfigVariables, signal?: AbortSignal) {
  if (!projectRef) throw Error('projectRef is required')

  const { data, error } = await get(`/platform/projects/{ref}/config/supavisor`, {
    params: { path: { ref: projectRef } },
    signal,
  })
  if (error) throw error

  return data
}

Subdomains

Frequently Asked Questions

What does getSupavisorConfig() do?
getSupavisorConfig() is a function in the supabase codebase.
What calls getSupavisorConfig()?
getSupavisorConfig() is called by 1 function(s): useSupavisorConfigQuery.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free