Skip to content

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

Change the redirects for Github and SSO to send the user back to / instead of /projects as before. It will be picked from there by the SignInLayout and WithAuth helper.

Ivan Vasilov6fa7acd62276
diff --git a/studio/components/interfaces/SignIn/SignInSSOForm.tsx b/studio/components/interfaces/SignIn/SignInSSOForm.tsx
index 3d1585c0e57..5da7eaefa02 100644
--- a/studio/components/interfaces/SignIn/SignInSSOForm.tsx
+++ b/studio/components/interfaces/SignIn/SignInSSOForm.tsx
@@ -38,7 +38,7 @@ const SignInSSOForm = () => {
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
? location.origin
: process.env.NEXT_PUBLIC_SITE_URL
- }${BASE_PATH}${getReturnToPath()}`,
+ }${BASE_PATH}${getReturnToPath('/')}`,
},
})
diff --git a/studio/components/interfaces/SignIn/SignInWithGitHub.tsx b/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
index a34d53a49b1..38edc76b4df 100644
--- a/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
+++ b/studio/components/interfaces/SignIn/SignInWithGitHub.tsx
@@ -1,9 +1,9 @@
-import { useState } from 'react'
+import * as Sentry from '@sentry/nextjs'
import { BASE_PATH } from 'lib/constants'
import { auth, getReturnToPath } from 'lib/gotrue'
import { incrementSignInClicks } from 'lib/local-storage'
+import { useState } from 'react'
import { Button, IconGitHub } from 'ui'
-import * as Sentry from '@sentry/nextjs'
const SignInWithGitHub = () => {
const [loading, setLoading] = useState(false)
@@ -24,7 +24,7 @@ const SignInWithGitHub = () => {
process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview'
? location.origin
: process.env.NEXT_PUBLIC_SITE_URL
- }${BASE_PATH}${getReturnToPath()}`,
+ }${BASE_PATH}${getReturnToPath('/')}`,
},
})
if (error) throw error