The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Comment out connecting state
Joshen Lim816630c4f2b8
diff --git a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex 1eba9da18cb..7fb584e514d 100644--- a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -103,9 +103,12 @@ const ContentWrapper: FC<ContentWrapperProps> = observer(({ isLoading, children<>{isLoading || ui.selectedProject === undefined ? (<Connecting />- ) : requiresDbConnection && isProjectOffline ? (- <ConnectingState project={ui.selectedProject} />- ) : requiresDbConnection && isProjectBuilding ? (+ ) : // [TODO] Temp fix commenting out ConnectingState as some projects take+ // really long to ping postgrest such that the timeout cancels out too early+ // requiresDbConnection && isProjectOffline ? (+ // <ConnectingState project={ui.selectedProject} />+ // ) :+ requiresDbConnection && isProjectBuilding ? (<BuildingState project={ui.selectedProject} />) : (<>{children}</>diff --git a/studio/stores/app/ProjectStore.ts b/studio/stores/app/ProjectStore.tsindex 5aeaa210483..5d646c65097 100644--- a/studio/stores/app/ProjectStore.ts+++ b/studio/stores/app/ProjectStore.ts@@ -27,14 +27,15 @@ export default class ProjectStore extends PostgresMetaInterface<Project> {const response = await get(url, { headers })if (!response.error) {const project = response as Project- if (- project.status === PROJECT_STATUS.ACTIVE_HEALTHY &&- project.restUrl &&- project.internalApiKey- ) {- const success = await this.pingPostgrest(project.restUrl, project.internalApiKey)- project.postgrestStatus = success ? 'ONLINE' : 'OFFLINE'- }+ // [TODO] Tempfix comment out ConnectingState+ // if (+ // project.status === PROJECT_STATUS.ACTIVE_HEALTHY &&+ // project.restUrl &&+ // project.internalApiKey+ // ) {+ // const success = await this.pingPostgrest(project.restUrl, project.internalApiKey)+ // project.postgrestStatus = success ? 'ONLINE' : 'OFFLINE'+ // }this.data[project.id] = project}}