change to APIBase
This commit is contained in:
@@ -37,7 +37,7 @@ function HomePage() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!expandedCardId || cardImages[expandedCardId]) return;
|
if (!expandedCardId || cardImages[expandedCardId]) return;
|
||||||
|
|
||||||
fetch(`http://localhost:3000/cardImage/${expandedCardId}`)
|
fetch(`${API_BASE}/cardImage/${expandedCardId}`)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.image) setCardImage(expandedCardId, data.image);
|
if (data.image) setCardImage(expandedCardId, data.image);
|
||||||
|
|||||||
Reference in New Issue
Block a user