change to APIBase

This commit is contained in:
2026-03-27 19:18:40 +01:00
parent 4946dfadb3
commit 7d3d96c158
+1 -1
View File
@@ -37,7 +37,7 @@ function HomePage() {
useEffect(() => {
if (!expandedCardId || cardImages[expandedCardId]) return;
fetch(`http://localhost:3000/cardImage/${expandedCardId}`)
fetch(`${API_BASE}/cardImage/${expandedCardId}`)
.then(res => res.json())
.then(data => {
if (data.image) setCardImage(expandedCardId, data.image);