From 909f8171913015f876a9ac67e8ea146414811f7c Mon Sep 17 00:00:00 2001 From: GitLukeW Date: Mon, 7 Aug 2023 13:41:12 -0400 Subject: [PATCH 1/2] switch over to the production server --- .env | 2 +- src/pages/Profile/TimeSlot.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/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, From 08cdd34abca1a1a7a6d2bd6ec95e44b62718359e Mon Sep 17 00:00:00 2001 From: GitLukeW Date: Mon, 7 Aug 2023 13:49:00 -0400 Subject: [PATCH 2/2] fixed axios link --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` },