vue.config.js 639 B

12345678910111213141516171819202122
  1. module.exports = {
  2. productionSourceMap:false,
  3. publicPath: './',
  4. devServer: {
  5. open: true,
  6. host: 'localhost',
  7. port: 8080,
  8. proxy: {
  9. '/apis': {
  10. target: 'http://121.37.152.76:8080/samex/rest/webclientrest', // target host
  11. // target: 'https://www.cnd3b.com/samex/rest/webclientrest', // target host
  12. ws: true, // proxy websockets
  13. changeOrigin: true, // needed for virtual hosted sites
  14. pathRewrite: {
  15. '^/apis': '' // rewrite path
  16. }
  17. },
  18. }
  19. }
  20. }