The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
ref: Show warning when user try to use vercel managed org with integration (#29643)
Kamil Ogórek58b599b0378f
diff --git a/apps/studio/pages/integrations/vercel/install.tsx b/apps/studio/pages/integrations/vercel/install.tsxindex b31c0d2d6d5..03b0333121b 100644--- a/apps/studio/pages/integrations/vercel/install.tsx+++ b/apps/studio/pages/integrations/vercel/install.tsx@@ -175,6 +175,10 @@ const VercelIntegration: NextPageWithLayout = () => {: false}, [installed, selectedOrg, source, dataLoading])+ const hasVercelManagedOrgSelected = useMemo(() => {+ return !!selectedOrg && selectedOrg.managed_by === 'vercel-marketplace'+ }, [selectedOrg])+const disableInstallationForm =(isLoadingVercelIntegrationCreateMutation && !dataLoading) ||// disables installation button if integration is already installed and it is Marketplace flow@@ -227,11 +231,21 @@ const VercelIntegration: NextPageWithLayout = () => {</AlertDescription_Shadcn_></Alert_Shadcn_>)}+ {hasVercelManagedOrgSelected && (+ <p className="prose text-sm text-red-900">+ Vercel Integration cannot be used with Vercel-managed organizations. Choose a+ different organization or create a Vercel resource directly.+ </p>+ )}<div className="flex flex-row w-full justify-end"><Buttonsize="medium"className="self-end"- disabled={disableInstallationForm || isLoadingVercelIntegrationCreateMutation}+ disabled={+ disableInstallationForm ||+ isLoadingVercelIntegrationCreateMutation ||+ hasVercelManagedOrgSelected+ }loading={isLoadingVercelIntegrationCreateMutation}onClick={onInstall}>