When I send an axios request to an Express URL called "getstatus" in my local development environment, everything works fine. However, once the files are uploaded to a server, the URL path still contains "localhost."
this.$axios.get('api/getstatus', {
}).then(function (response) {
})
.catch(function (error) {
});
app.get('/getstatus', async (req, res) => {
// code executing here
})
-> Works fine on localhost -> Error on server: Request URL: http://localhost:3000/api/getstatus
Why is the local development URL still being used? It should be