Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

removes unused supabase client

Alaister Young21710d7edf17
diff --git a/studio/pages/_app.tsx b/studio/pages/_app.tsx
index dcd734d21b9..415204b66ac 100644
--- a/studio/pages/_app.tsx
+++ b/studio/pages/_app.tsx
@@ -51,8 +51,6 @@ import useAutoAuthRedirect from 'hooks/misc/useAutoAuthRedirect'
import { TooltipProvider } from '@radix-ui/react-tooltip'
import Favicons from 'components/head/Favicons'
-import { IS_PLATFORM } from 'lib/constants'
-import { createClient } from '@supabase/supabase-js'
dayjs.extend(customParseFormat)
dayjs.extend(utc)
@@ -65,16 +63,6 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {
const queryClient = useRootQueryClient()
const [rootStore] = useState(() => new RootStore())
- // [Joshen] Some issues with using createBrowserSupabaseClient
- const [supabase] = useState(() =>
- IS_PLATFORM
- ? createClient(
- process.env.NEXT_PUBLIC_SUPABASE_URL as string,
- process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY as string
- )
- : undefined
- )
-
const getSavingState = () => rootStore.content.savingState
// prompt the user if they try and leave with unsaved content store changes