Skip to content

Commit 7ddf947

Browse files
committed
fix: 🐛 deploy
1 parent fa8c34e commit 7ddf947

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default function Home() {
2222
const shouldShowToggle = (text: string) => {
2323
return text.length > 10
2424
}
25-
25+
26+
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "https://visual-ds.github.io/group-seminar.github.io/";
27+
console.log("base Path", basePath);
2628

2729
return (
2830
<div className="max-w-7xl mx-auto text-gray-800 p-4">
@@ -60,7 +62,7 @@ export default function Home() {
6062
key={index}
6163
className="flex gap-6 items-start text-sm border rounded-lg p-4 mb-4 bg-white shadow"
6264
>
63-
<img src={talk.image} className="rounded-full w-40 h-40" />
65+
<img src={`${basePath}/${talk.image}`} className="rounded-full w-40 h-40" />
6466
<div className="flex flex-col gap-2">
6567
<h3 className="font-bold md:text-lg text-xs">{talk.topic}</h3>
6668
<p className="italic md:text-md text-xs">

0 commit comments

Comments
 (0)