summaryrefslogtreecommitdiffhomepage
path: root/src/components/Game.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Game.jsx')
-rw-r--r--src/components/Game.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Game.jsx b/src/components/Game.jsx
index 8b80b8e..7746767 100644
--- a/src/components/Game.jsx
+++ b/src/components/Game.jsx
@@ -9,13 +9,13 @@ import Button from "./Button";
//export default () => (
export default function Games () {
let { user, game } = useParams();
-//http://localhost:3000/api/v1/game/realtradam/orc-arena-of-time/index.html
+//http://%{VITE_API_TITLE}/api/v1/game/realtradam/orc-arena-of-time/index.html
return(
<>
<div>
<div className="flex flex-col gap-16 max-w-6xl shrink">
<div className="title font-bold text-6xl font-title">Orc: Arena of Time</div>
- <iframe style={{ aspectRatio: 1 }} className="bg-black aspect-square max-h-[90vh] rounded" src="http://localhost:3000/api/v1/game/realtradam/orc-arena-of-time/index.html" title={game}></iframe>
+ <iframe style={{ aspectRatio: 1 }} className="bg-black aspect-square max-h-[90vh] rounded" src={`${import.meta.env.VITE_API_TITLE}api/v1/game/realtradam/orc-arena-of-time/index.html`} title={game}></iframe>
</div>
</div>
</>