农经大屏
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

vue.config.js 1.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module.exports = {
  2. css: {
  3. loaderOptions: {
  4. }
  5. },
  6. configureWebpack: {
  7. performance: {
  8. hints: false
  9. },
  10. devServer: {
  11. host: '0.0.0.0',
  12. port: 8002,
  13. contentBase: ['./node_modules', './public'],
  14. publicPath: '/',
  15. disableHostCheck: true,
  16. proxy: {
  17. '/api': {
  18. // target: 'http://test.credit.country.jilin.expo.loan.cacfintech.com',
  19. target: 'http://localhost:37300',
  20. // target: 'http://192.168.124.142:8090',
  21. logLevel: 'debug',
  22. changeOrigin: true,
  23. onProxyReq: function (proxyReq, req) {
  24. console.log(
  25. '[HPM] Origin changed from ' +
  26. req.headers.host +
  27. ' ~> ' +
  28. proxyReq.getHeader('host')
  29. );
  30. }
  31. },
  32. '/geoserver': {
  33. target: 'http://localhost:37300',
  34. logLevel: 'debug',
  35. changeOrigin: true,
  36. onProxyReq: function (proxyReq, req) {
  37. console.log(
  38. '[HPM] Origin changed from ' +
  39. req.headers.host +
  40. ' ~> ' +
  41. proxyReq.getHeader('host')
  42. );
  43. }
  44. }
  45. }
  46. }
  47. }
  48. };