diff --git a/.env b/.env index 6c2313d..93af25a 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -REACT_APP_BE_URL='https://team-production-system.onrender.com' \ No newline at end of file +REACT_APP_BE_URL='https://momentum-mentors.onrender.com' \ No newline at end of file diff --git a/src/App.js b/src/App.js index d78b4aa..60dd654 100644 --- a/src/App.js +++ b/src/App.js @@ -41,7 +41,7 @@ function App() { setLoading(true); axios .post( - "https://team-production-system.onrender.com/auth/token/logout/", + `${process.env.REACT_APP_BE_URL}/auth/token/logout/`, {}, { headers: { Authorization: `Token ${token}` }, diff --git a/src/pages/Profile/TimeSlot.js b/src/pages/Profile/TimeSlot.js index d742e9f..0afb873 100644 --- a/src/pages/Profile/TimeSlot.js +++ b/src/pages/Profile/TimeSlot.js @@ -37,7 +37,7 @@ export default function TimeSlot({ endTimeSend.toISOString(); axios .post( - `https://team-production-system.onrender.com/availability/`, + `${process.env.REACT_APP_BE_URL}/availability/`, { start_time: startTimeSend,