Skip to content

Commit 4c5b8f3

Browse files
committed
fixed the logo loading issues
1 parent 1bf1469 commit 4c5b8f3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

website/src/components/Header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import { useState, useCallback } from "react";
44

5+
const basePath = process.env.NEXT_PUBLIC_BASE_PATH ?? "";
6+
57
interface HeaderProps {
68
onSearch: (query: string) => void;
79
}
@@ -38,7 +40,7 @@ export default function Header({ onSearch }: HeaderProps) {
3840
href="/"
3941
className="flex items-center gap-2 shrink-0 group"
4042
>
41-
<img src="/logo.png" alt="Everything AI/ML logo" className="w-8 h-8 object-contain" />
43+
<img src={`${basePath}/logo.png`} alt="Everything AI/ML logo" className="w-8 h-8 object-contain" />
4244
<div className="hidden sm:block">
4345
<div
4446
className="font-bold text-base leading-tight"

0 commit comments

Comments
 (0)