Home / Function/ PublicSchemaNotEnabledAlert() — supabase Function Reference

PublicSchemaNotEnabledAlert() — supabase Function Reference

Architecture documentation for the PublicSchemaNotEnabledAlert() function in PublicSchemaNotEnabledAlert.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/Docs/PublicSchemaNotEnabledAlert.tsx lines 7–27

const PublicSchemaNotEnabledAlert = () => {
  const { ref: projectRef } = useParams()

  return (
    <Admonition type="default">
      <p className="!mt-0 !mb-1.5">The public schema for this project is not exposed</p>
      <p className="!mt-0 !mb-1.5 text-foreground-light">
        You will not be able to query tables and views in the public schema via supabase-js or HTTP
        clients. Configure this behavior in your project's Data API settings.
      </p>
      <Button asChild type="default" className="mt-1">
        <Link
          href={`/project/${projectRef}/settings/api#postgrest-config`}
          className="!no-underline"
        >
          View API settings
        </Link>
      </Button>
    </Admonition>
  )
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free