Skip to content

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

fix BASE_PATH issues

Jonathan Summers-Muirc15f0391f93e
diff --git a/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
index e8a3352fded..ae9fdbde404 100644
--- a/studio/components/interfaces/Integrations/IntegrationPanels.tsx
+++ b/studio/components/interfaces/Integrations/IntegrationPanels.tsx
@@ -2,6 +2,7 @@ import { Markdown } from 'components/interfaces/Markdown'
import { Integration, IntegrationProjectConnection } from 'data/integrations/integrations-query'
import dayjs from 'dayjs'
import { useStore } from 'hooks'
+import { BASE_PATH } from 'lib/constants'
import Image from 'next/image'
import React from 'react'
@@ -142,7 +143,7 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect
<HandleIcon type={type} />
) : (
<img
- src={`/img/icons/frameworks/${connection.metadata.framework}.svg`}
+ src={`${BASE_PATH}/img/icons/frameworks/${connection.metadata.framework}.svg`}
width={21}
height={21}
alt={`icon`}
diff --git a/studio/components/interfaces/Organization/IntegrationSettings/Integration.tsx b/studio/components/interfaces/Organization/IntegrationSettings/Integration.tsx
index 3bd3b2434c3..8741384e07b 100644
--- a/studio/components/interfaces/Organization/IntegrationSettings/Integration.tsx
+++ b/studio/components/interfaces/Organization/IntegrationSettings/Integration.tsx
@@ -14,6 +14,7 @@ import {
import { Integration as TIntegration } from 'data/integrations/integrations-query'
import { useIntegrationsVercelInstalledConnectionDeleteMutation } from 'data/integrations/integrations-vercel-installed-connection-delete-mutation'
import { useStore } from 'hooks'
+import { BASE_PATH } from 'lib/constants'
import { pluralize } from 'lib/helpers'
import { EMPTY_ARR } from 'lib/void'
import { useGithubConnectionConfigPanelSnapshot } from 'state/github-connection-config-panel'
@@ -75,7 +76,7 @@ Repository connections for ${title?.toLowerCase()}
{detail && <Markdown content={detail} />}
<img
className="border rounded-lg shadow w-48 mt-6 border-body"
- src={`/img/integrations/covers/${title.toLowerCase()}-cover.png?v=3`}
+ src={`${BASE_PATH}/img/integrations/covers/${title.toLowerCase()}-cover.png?v=3`}
alt="cover"
/>
</ScaffoldSectionDetail>