vue.config.js 677 B

12345678910111213141516171819202122232425262728293031
  1. const { defineConfig } = require('@vue/cli-service')
  2. module.exports = defineConfig({
  3. transpileDependencies: true,
  4. lintOnSave:false,
  5. publicPath:"./",
  6. devServer:{
  7. https:true,
  8. proxy: {
  9. '/addressapi': {
  10. target: 'https://10.90.11.49:2000/',
  11. secure: false,
  12. ws:true,
  13. changeOrigin: true,
  14. pathRewrite: {
  15. '^/addressapi': ''
  16. }
  17. },
  18. '/api': {
  19. target: 'https://10.90.11.49:2002/data-business-prod/',
  20. // target: 'http://localhost:9250/',
  21. secure: false,
  22. ws:true,
  23. changeOrigin: true,
  24. pathRewrite: {
  25. '^/api': ''
  26. }
  27. }
  28. },
  29. },
  30. })