From 62196f80d96c1f5c83d93a8a01b391ebce79238b Mon Sep 17 00:00:00 2001 From: RonanCraft Date: Thu, 23 May 2024 00:23:38 -0400 Subject: [PATCH] env api url --- src/context/UserContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/UserContext.tsx b/src/context/UserContext.tsx index 800b4e6..c26537c 100644 --- a/src/context/UserContext.tsx +++ b/src/context/UserContext.tsx @@ -22,7 +22,7 @@ export default function UserProvider({ children }: { children: any }) { useEffect(() => { console.log("Welcome to RonanServices! Want to contribute?"); const getUser = () => { - fetch("http://localhost:3001/api/auth/login/success", { + fetch(`${import.meta.env.VITE_API_URL}/auth/login/success`, { method: "GET", credentials: "include", headers: {