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/Home.jsx | |
| parent | 2330eb25d958df5a8e15bcc9f452ac703323d159 (diff) | |
| download | malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.tar.gz malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.zip | |
add prod/dev env vars
Diffstat (limited to 'src/components/Home.jsx')
| -rw-r--r-- | src/components/Home.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Home.jsx b/src/components/Home.jsx index 863d81d..c1fb689 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -15,7 +15,7 @@ export default function Home () { console.log(pair[0] + ', ' + pair[1]) }; - fetch('http://127.0.0.1:3000/api/v1/games', { + fetch('${import.meta.env.VITE_API_TITLE}/api/v1/games', { method: 'post', body: formData, }); @@ -24,11 +24,11 @@ export default function Home () { <> <div> <div className="flex flex-col gap-16 max-w-6xl shrink"> - <div className="title font-bold text-6xl font-title">Get To Know Me a Little</div> + <div className="title font-bold text-6xl font-title">Work In Progress</div> <div className=""> <div className="jumbotron jumbotron-fluid bg-transparent"> <div className="container secondary-color"> - <h1 className="text-2xl">Debug! Again</h1> + <h1 className="text-2xl"> API at: { import.meta.env.VITE_API_TITLE } </h1> <p className=""> Ea optio vitae culpa voluptatem consectetur. Ab quisquam sed ipsum. Perspiciatis minus odit quas qui consequuntur dicta reiciendis a. Nihil minima sed aliquam. </p> |
