The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Merge branch 'master' into feat/self-hosted-storage
Qiao Han89b6828e5a31
diff --cc studio/hooks/misc/withAuth.tsxindex 071564273a7,ca8f3f25a91..c6c84dbeec7--- a/studio/hooks/misc/withAuth.tsx+++ b/studio/hooks/misc/withAuth.tsx@@@ -1,13 -1,17 +1,17 @@@import { ComponentType, useEffect } from 'react'+ import Head from 'next/head'import { NextRouter, useRouter } from 'next/router'+ import { STORAGE_KEY } from 'lib/gotrue'import { IS_PLATFORM } from 'lib/constants'import { useProfile, useStore, usePermissions } from 'hooks'+ import Error500 from '../../pages/500'+ import { NextPageWithLayout } from 'types'-const PLATFORM_ONLY_PAGES = ['storage', 'reports', 'settings']+const PLATFORM_ONLY_PAGES = ['reports', 'settings']export function withAuth<T>(- WrappedComponent: ComponentType<T>,+ WrappedComponent: ComponentType<T> | NextPageWithLayout<T, T>,options?: {redirectTo: stringredirectIfFound?: boolean