Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49259

How to get the devServer proxy to work?

$
0
0
module.exports = {
  devServer: {
    proxy: {
      '^/auth': {
        target: 'http://localhost:3000',
        ws: true,
        changeOrigin: true,
      },
    },
  },
};

I’ve configured my vue.config.js in the root of the project.

When I run:

npm run serve - the proxy works
vue-cli-service serve - the proxy works
ionic serve - the proxy does not work

what could be the issue? doesn’t ionic use the vue cli under the hood?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>