How to proxy URL call in Vue.js in production?
May be you should use devServer
instead. And for build
I guess there is another name now.
For example:
module.exports = { devServer: { // your settings }}
For example:
module.exports = { devServer: { proxy: { '/api': { target: '<url>', ws: true, changeOrigin: true }, '/foo': { target: '<other_url>' } } }}
Reference: vue-cli