Skip to content

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

fix some broken asset links

Inian Parameshwaran0464852deefb
diff --git a/www/components/Nav/Developers.tsx b/www/components/Nav/Developers.tsx
index 1e77ccbaf14..276a4abc3b2 100644
--- a/www/components/Nav/Developers.tsx
+++ b/www/components/Nav/Developers.tsx
@@ -1,6 +1,8 @@
import React from 'react'
import DevelopersData from 'data/Developers.json'
import AnnouncementsData from 'data/Announcements.json'
+import { useRouter } from 'next/router'
+
type Props = {
text: string
@@ -11,6 +13,7 @@ type Props = {
const Developers = () => {
+ const { basePath } = useRouter()
const iconSections = Object.values(DevelopersData).map((company : Props) => {
const { text, description, url, icon } = company
@@ -82,7 +85,7 @@ const Developers = () => {
<div className="hidden sm:block flex-shrink-0">
<img
className="w-32 h-20 object-cover rounded-md"
- src={caseStudy.imgUrl}
+ src={`${basePath}/${caseStudy.imgUrl}`}
alt="caseStudyThumb"
/>
</div>
diff --git a/www/components/Nav/Product.tsx b/www/components/Nav/Product.tsx
index b8e3979dbbb..d16a63520dd 100644
--- a/www/components/Nav/Product.tsx
+++ b/www/components/Nav/Product.tsx
@@ -2,8 +2,10 @@ import React from 'react'
import Badge from 'components/Badge'
import SolutionsData from 'data/Solutions.json'
import CaseStudiesData from 'data/CaseStudies.json'
+import { useRouter } from 'next/router'
const Product = () => {
+ const { basePath } = useRouter()
const iconSections = Object.values(SolutionsData).map((solution) => {
const { name, description, icon, label, url } = solution
@@ -78,7 +80,7 @@ const Product = () => {
<div className="hidden sm:block flex-shrink-0">
<img
className="w-32 h-20 object-cover rounded-md"
- src={caseStudy.imgUrl}
+ src={`${basePath}/${caseStudy.imgUrl}`}
alt="caseStudyThumb"
/>
</div>