I am working on the React App project, In env file – I have declared
REACT_APP_URL = 'http://localhost:8080/'
and using axios to make HTTP request
and here is my code
export const ADMIN_URL = process.env.REACT_APP_URL;
export const api = axios.create({
baseURL: ADMIN_URL,
headers: {
'Content-Type': 'application/json',
},
});
But when I deployed I could see frontend url and backend url in the request url
example : "http://localhost:3000/login'http://localhost:8080/'/logged