.env
REACT_APP_API_URL=http://localhost:8080
react file
export const signupfetch=user=>{
return fetch(`process.env.REACT_APP_API_URL`,{
method:"POST",
headers:{
Accept:"application/json",
"Content-Type":"application/json"
},
body:JSON.stringify(user)
}).then(response=>{return response.json()})
.catch(err=>console.log(err))
};
enter code here
REACT_APP_API_UR is returning data undefind for all the urls