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/routes/index.jsx | |
| parent | 2330eb25d958df5a8e15bcc9f452ac703323d159 (diff) | |
| download | malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.tar.gz malcz.com-5f1b0bb1883a8021c7261dad59e063824849fd81.zip | |
add prod/dev env vars
Diffstat (limited to 'src/routes/index.jsx')
| -rw-r--r-- | src/routes/index.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/index.jsx b/src/routes/index.jsx index df46102..5809fbb 100644 --- a/src/routes/index.jsx +++ b/src/routes/index.jsx @@ -9,7 +9,7 @@ import Layout from "../components/Layout"; export default function index() { const [userData, setUserData] = useState({}); - const url = "http://localhost:3000/api/v1/auth/data"; + const url = `${import.meta.env.VITE_API_TITLE}/api/v1/auth/data`; useEffect(() => { fetch(url, { credentials: "include" |
