vue.config.js 727 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. lintOnSave: false,
  3. devServer: {
  4. host: 'localhost',
  5. port: 8082,
  6. proxy: {
  7. '/metadata': {
  8. target: 'http://10.168.57.10:21000',
  9. changeOrigin: true,
  10. pathRewrite: {
  11. '^/metadata': ''
  12. },
  13. },
  14. // '/': {
  15. // // target: ' http://192.168.1.124:8081',
  16. // target: 'http://localhost:8082',
  17. // // target: 'http://192.168.1.103:8081',
  18. // changeOrigin: true,
  19. // ws: false,
  20. // pathRewrite: {
  21. // '^/': ''
  22. // },
  23. // },
  24. },
  25. }
  26. }