diff --git a/app/client/.env.local b/app/client/.env.local deleted file mode 100644 index 8de3f61b1ba6c268a304f938cd159a10231bf44d..0000000000000000000000000000000000000000 --- a/app/client/.env.local +++ /dev/null @@ -1 +0,0 @@ -REACT_APP_baseAPIURL=http://localhost:3000 diff --git a/app/client/src/utils/APICalls.js b/app/client/src/utils/APICalls.js index 9951b2fcd1f881c25b5e91e8c0794acebd1a7af0..a54dd81dcb91f2624da1a22eb87f669f6e3c711b 100644 --- a/app/client/src/utils/APICalls.js +++ b/app/client/src/utils/APICalls.js @@ -1,7 +1,7 @@ import axios from 'axios' const axiosInstance = axios.create({ - baseURL: process.env.REACT_APP_baseAPIURL, + baseURL: process.env.PUBLIC_URL, withCredentials: true, }); @@ -16,7 +16,7 @@ axiosInstance.interceptors.response.use( ); export const signout = () => { - return axiosInstance.post(process.env.REACT_APP_baseAPIURL + '/logout').then(user => { + return axiosInstance.post(process.env.PUBLIC_URL + '/logout').then(user => { // delete axiosInstance.defaults.headers.common["Authorization"]; return user.data }) @@ -93,4 +93,4 @@ export const deleteTodo = (_id) => { }).then(todo => { return todo }) -} +} \ No newline at end of file