AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Self-Hosted Studio Auth Providers Page Stuck On Skeleton Loaders Due To IS_PLATFORM Gating And Missing Platform Auth API Route

On self-hosted Supabase Studio, the Authentication → Sign In / Providers page never completes loading because the auth config query is disabled when NEXT_PUBLIC_IS_PLATFORM is false, and the fallback platform route GET /api/platform/auth/:ref/config is not implemented in typical self-hosted ingress stacks, causing an infinite skeleton state.

highConfidence 65%Next.jsApp RouterPages Routernext build

Origin Analysis

The auth config query (useAuthConfigQuery) includes IS_PLATFORM in its enabled predicate. In self-hosted builds NEXT_PUBLIC_IS_PLATFORM is false, so TanStack Query v5 never triggers the fetch. Additionally, the static export can leave router.query/useParams projectRef undefined or normalized to '_', and the cloud-only platform auth config endpoint is not available on self-hosted, so any attempted fetch returns HTML from the SPA fallback instead of JSON.
1. Deploy official supabase/studio image (or self-hosted via Helm chart/Kong) with NEXT_PUBLIC_IS_PLATFORM=false. 2. Log into Studio and navigate to Authentication → Sign In / Providers for a project. 3. Observe the page remains on skeleton loaders indefinitely; the browser network tab shows either no request to /api/platform/auth/:ref/config or a response with HTML content.

Fixing Code Block

Edge Case Audit

The fallback adds a direct dependency on the GoTrue settings endpoint being reachable at /auth/v1/settings from the Studio origin. If the self-hosted ingress/Kong configuration does not expose this path, the page will still fail. The fallback may also mask genuine cloud platform route errors by retrying against GoTrue; consider logging the original error. In concurrent or multi-project scenarios, ensure query keys and abort signals are properly scoped to avoid race conditions. Rollback by restoring the IS_PLATFORM check and removing the fallback if unexpected behavior occurs on cloud deployments.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state