The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
only use vercel url when in preview
Jonathan Summers-Muir881b1c7ef49c
diff --git a/studio/components/interfaces/Home/Landing.tsx b/studio/components/interfaces/Home/Landing.tsxindex e6e71a031ad..57877a8ce2e 100644--- a/studio/components/interfaces/Home/Landing.tsx+++ b/studio/components/interfaces/Home/Landing.tsx@@ -16,7 +16,11 @@ const Landing = () => {const { error } = await auth.signInWithOAuth({provider: 'github',options: {- redirectTo: `${process.env.VERCEL_URL}?auth=true`,+ redirectTo: `${+ process.env.VERCEL_ENV === 'Preview'+ ? process.env.VERCEL_URL+ : process.env.NEXT_PUBLIC_SITE_URL+ }?auth=true`,},})if (error) throw errordiff --git a/studio/pages/index.tsx b/studio/pages/index.tsxindex 668e62c6c7b..d7aaf18dc61 100644--- a/studio/pages/index.tsx+++ b/studio/pages/index.tsx@@ -61,7 +61,11 @@ const UnauthorizedLanding = () => {auth.signInWithOAuth({provider: 'github',options: {- redirectTo: `${process.env.VERCEL_URL}?${params.toString()}`,+ redirectTo: `${+ process.env.VERCEL_ENV === 'Preview'+ ? process.env.VERCEL_URL+ : process.env.NEXT_PUBLIC_SITE_URL+ }?${params.toString()}`,},})}