diff options
| author | realtradam <[email protected]> | 2024-05-22 19:05:07 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-05-22 19:05:07 -0400 |
| commit | 5f1b0bb1883a8021c7261dad59e063824849fd81 (patch) | |
| tree | 7cc6f178256df3e7bd5556693fccbecf92034023 /src/components/GameCard.jsx | |
| parent | 2330eb25d958df5a8e15bcc9f452ac703323d159 (diff) | |
| download | malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.tar.gz malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.zip | |
add prod/dev env vars
Diffstat (limited to 'src/components/GameCard.jsx')
| -rw-r--r-- | src/components/GameCard.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/GameCard.jsx b/src/components/GameCard.jsx index 9cd815d..82ad423 100644 --- a/src/components/GameCard.jsx +++ b/src/components/GameCard.jsx @@ -15,10 +15,10 @@ export default function GameCard ({ link = "./", width = "72", game = { card_img <a href={ link } className="block w-min pt-10 px-1" target="_blank"> <div className="gameCard"> <div className="gameCardWrapper"> - <img src={`/api/v1/games_img/realtradam/${game.titleSlug}.png?type=card`} className="gameCardCoverImg" /> + <img src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=card`} className="gameCardCoverImg" /> </div> - <img src={`/api/v1/games_img/realtradam/${game.titleSlug}.png?type=title`} className="gameTitleImg p-5%" /> - <img src={`/api/v1/games_img/realtradam/${game.titleSlug}.png?type=char`} className="gameCharacterImg" /> + <img src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=title`} className="gameTitleImg p-5%" /> + <img src={`${import.meta.env.VITE_API_TITLE}/api/v1/games_img/realtradam/${game.titleSlug}.png?type=char`} className="gameCharacterImg" /> </div> </a> </> |
