Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

637 B
Raw Blame
import { InstanceConfiguration } from '@/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration'
import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'

/** Project topology: load balancer, primary, and read replicas. */
export const InfrastructureTopology = () => {
  const { infrastructureReadReplicas } = useIsFeatureEnabled(['infrastructure:read_replicas'])

  if (!infrastructureReadReplicas) return null

  return (
    <div className="w-full h-[400px] border border-muted rounded-md overflow-hidden flex flex-col relative">
      <InstanceConfiguration />
    </div>
  )
}