Skip to content

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

add empty state install button

Jonathan Summers-Muir1006481ed293
diff --git a/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx b/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx
index 9baa077023f..655cabd3f01 100644
--- a/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx
+++ b/studio/components/interfaces/Settings/Integrations/IntegrationsSettings.tsx
@@ -50,6 +50,7 @@ import {
IconCheck,
IconChevronDown,
IconClock,
+ IconExternalLink,
Input_Shadcn_,
Label_Shadcn_,
PopoverContent_Shadcn_,
@@ -69,6 +70,7 @@ import { useBranchQuery } from 'data/branches/branch-query'
import { useBranchesQuery } from 'data/branches/branches-query'
import { GitBranch, Shield, RotateCcw, GitCompare } from 'lucide-react'
import { useVercelConnectionUpdateMutation } from 'data/integrations/vercel-connection-update-mutate'
+import Link from 'next/link'
const IntegrationImageHandler = ({ title }: { title: 'vercel' | 'github' }) => {
return (
@@ -200,8 +202,7 @@ You can change the scope of the access for Supabase by configuring
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<Markdown content={VercelContentSectionTop} />
- {vercelIntegrations &&
- vercelIntegrations.length > 0 &&
+ {vercelIntegrations && vercelIntegrations.length > 0 ? (
vercelIntegrations
.filter((x) =>
x.connections.find((x) => x.supabase_project_ref === projectContext.project?.ref)
@@ -259,7 +260,16 @@ You can change the scope of the access for Supabase by configuring
</EmptyIntegrationConnection>
</div>
)
- })}
+ })
+ ) : (
+ <div>
+ <Link href="https://vercel.com/integrations/supabase-v2" passHref>
+ <Button type="default" iconRight={<IconExternalLink />} asChild>
+ <a target="_blank">Install Vercel Integration</a>
+ </Button>
+ </Link>
+ </div>
+ )}
{VercelContentSectionBottom && (
<Markdown content={VercelContentSectionBottom} className="text-lighter" />
)}
diff --git a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
index 5d8edc63858..00c592bafa2 100644
--- a/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
+++ b/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.ts
@@ -134,6 +134,16 @@ export const generateSettingsMenu = (
url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/api`,
items: [],
},
+ ...(IS_PLATFORM
+ ? [
+ {
+ name: 'Integrations',
+ key: 'integrations',
+ url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/integrations`,
+ items: [],
+ },
+ ]
+ : []),
...(IS_PLATFORM
? [
{
@@ -180,12 +190,6 @@ export const generateSettingsMenu = (
: `/project/${ref}/settings/billing/subscription`,
items: [],
},
- {
- name: 'Integrations',
- key: 'integrations',
- url: isProjectBuilding ? buildingUrl : `/project/${ref}/settings/integrations`,
- items: [],
- },
{
name: 'Usage',
key: 'usage',