title: How to set API path in vue.config.js for production?
body: <p>I'm using vue cli3 for setup. I already have devServer api set up as such in <code>vue.config.js</code> file:</p>
  
  <pre><code>devServer: {
      proxy: {
          '/api': {
              target: 'http://localhost:1888/apps/test/mainapp.php/',
              changeOrigin: true,
          },
      },
  }
  </code></pre>
  
  <p>I also need to set path '<a href="https://server/myapp/main.php/" rel="noreferrer">https://server/myapp/main.php/</a>' as the production API path, but I can't seem to find any info in the <a href="https://cli.vuejs.org/config/" rel="noreferrer">documentation</a> on how to do it. Any help is appreciated.</p>
  
  <p>Brief example of what i'm doing in code:</p>
  
  <pre><code>methods: {
      login() {
          this.axios.post('/api/test')
              .then((resp) =&gt; {
                  console.log(resp);
              })
              .catch(() =&gt; {
                  console.log('err:' , err);
              });
      },
  },
  </code></pre>