I am working on incorporating Vue into my .net MVC project. After installing Vue using the CLI, I included the following vue.config.js
:
module.exports = {
devServer: {
proxy: {
'/': {
target: 'http://mvcsite.local',
changeOrigin: true
}
},
disableHostCheck: true
},
runtimeCompiler: true
};
The proxy functionality is working correctly, however, when a request is made to the root http://localhost:8080
(where the development server runs), it serves the index.html generated by Vue instead of properly proxying the request to the root of http://mvcsite.local
. How can I ensure that particular request is proxied as intended?