The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
LayoutHeader reset read only mode if there's no project ref
Joshen Lim9ab401e1ec19
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsxindex 4bb9d3bc728..aeb4a2ffd80 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx@@ -38,6 +38,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =useEffect(() => {if (projectRef) checkForReadOnlyMode()+ else setIsReadOnlyMode(false)}, [projectRef])const { data: usage } = useProjectUsageQuery({ projectRef })@@ -89,7 +90,7 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder ={/* [Terry] Temporary until we figure out how we want to display this permanently */}{/* context: https://www.notion.so/supabase/DB-Disk-Size-Free-tier-Read-only-Critical-f2b8937c13a149e3ac769fe5888f6db0*/}- {projectRef !== undefined && isReadOnlyMode && (+ {isReadOnlyMode && (<div className="ml-2"><Link href={`/project/${projectRef}/settings/billing/usage`}><a>