title: VueJS - vue.config.js proxy configuration for build
body: <p>I'm currently using <code>devServer{proxy:{...}}</code> in vue.config.js to configure proxy for api calls for avoiding CORS problems in my application. It works fine when I run <code>npm run serve</code> in localhost.</p>
  
  <p>Now I need to deploy my application to a host, so I run <code>npm run build</code>, change the url's of my Ajax calls and it's not running... So what I indeed need is to configure my proxy for deployment (build), not for devServer.</p>
  
  <p>What is the correct way to do that?</p>
  
  <p>I've already tried:
  <code>server{proxy:{...}}</code> and <code>build{proxy:{...}}</code>, but none of them are allowed when running <code>npm run build</code>.</p>
  
  <p>Thank you!</p>