webpack-dev-server proxy: context with wildcard
<p>I want to proxy /v1/* to <a href="http://myserver.com" rel="nofollow noreferrer">http://myserver.com</a>, and here is my script</p>
<pre class="lang-js prettyprint-override"><code>devServer: {
  historyApiFallBack: true,
  // progress: true,
  hot: true,
  inline: true,
  // https: true,
  port: 8081,
  contentBase: path.resolve(__dirname, 'public'),
  proxy: {
    '/v1/*': {
      target: 'http://api.in.uprintf.com',
      secure: false
      // changeOrigin: true
    },
  },
},
</code></pre>
<p>but it doesn't work,
<a href="https://i.stack.imgur.com/BanoH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BanoH.png" alt="enter image description here" /></a></p>