The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
factor if limit is unlimited
Joshen Limd4a4820c7ede
diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsxindex 02dab0e151a..ddda7766f34 100644--- a/studio/pages/project/[ref]/reports/database.tsx+++ b/studio/pages/project/[ref]/reports/database.tsx@@ -41,8 +41,9 @@ const DatabaseUsage: FC<any> = () => {const [dateRange, setDateRange] = useState<any>(undefined)const { ref } = router.query- const { usage, error: usageError, isLoading } = useProjectUsage(ref as string)- const databaseSizeLimit = usage?.db_size?.limit ?? 0+ const { usage } = useProjectUsage(ref as string)+ // const databaseSizeLimit = usage?.db_size?.limit ?? 0+ const databaseSizeLimit = 0useEffect(() => {let cancel = false@@ -78,12 +79,12 @@ const DatabaseUsage: FC<any> = () => {<SparkBartype="horizontal"value={databaseSize}- max={databaseSizeLimit}+ max={databaseSizeLimit > 0 ? databaseSizeLimit : Infinity}barClass={`${isExceeded ? 'bg-red-900' : isApproaching ? 'bg-yellow-900' : 'bg-brand-900'}`}labelBottom={formatBytes(databaseSize)}- labelTop={formatBytes(databaseSizeLimit)}+ labelTop={databaseSizeLimit > 0 ? formatBytes(databaseSizeLimit) : ''}/></div></Panel.Content>