The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: allow accessing specific pages when project postgrest ping failed
phamhieue399b2ae185a
diff --git a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex ed2c40090a7..9198a55b1b9 100644--- a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -92,6 +92,12 @@ const ContentWrapper: FC<ContentWrapperProps> = observer(({ isLoading, childrenconst { ui } = useStore()const router = useRouter()const requiresDbConnection: boolean = router.pathname !== '/project/[ref]/settings/general'+ const requiresPostgrestConnection =+ [+ '/project/[ref]/settings/general',+ '/project/[ref]/reports',+ '/project/[ref]/settings/database',+ ].includes(router.pathname) === falseconst isProjectBuilding = [PROJECT_STATUS.COMING_UP, PROJECT_STATUS.RESTORING].includes(ui.selectedProject?.status ?? '')@@ -101,7 +107,7 @@ const ContentWrapper: FC<ContentWrapperProps> = observer(({ isLoading, children<>{isLoading || ui.selectedProject === undefined ? (<Connecting />- ) : requiresDbConnection && isProjectOffline ? (+ ) : requiresPostgrestConnection && isProjectOffline ? (<ConnectingState project={ui.selectedProject} />) : requiresDbConnection && isProjectBuilding ? (<BuildingState project={ui.selectedProject} />