I have this in src/vue.config.js
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8081',
changeOrigin: true,
},
},
},
};
and I'm calling the api with
axios.get('/api/parts')
.then(result => commit('updateParts', result.data))
.catch(console.error);
But I just keep getting
Error: "Request failed with status code 404"
And I can see the request is being made to port 8080 instead of 8081
I can access the api in the browser with no problems
How can I debug this?
