vue.config.js 946 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. lintOnSave: false,
  3. assetsDir: 'static',
  4. publicPath: "/",
  5. outputDir: 'dist',
  6. productionSourceMap: false,
  7. devServer: {
  8. host: '0.0.0.0',
  9. port: 80,
  10. // https: true,
  11. proxy: {
  12. [process.env.VUE_APP_BASE_API]: {
  13. // 本地环境
  14. // target: 'http://192.168.1.47:8080',
  15. // 服务器环境(测试)
  16. target: 'http://119.29.163.98:8080',
  17. // 服务器环境(生产)
  18. // target: 'http://1.82.219.241:8080',
  19. changeOrigin: true,
  20. pathRewrite: {
  21. ['^' + process.env.VUE_APP_BASE_API]: ''
  22. }
  23. },
  24. // 金融产品相关
  25. "/open-API": {
  26. target: "https://qyyd.shanqitong.com/servicePath/",//正式
  27. // target: "https://shanxi-sqt-dev-gov-ex.yscredit.com/servicePath",//测试
  28. changeOrigin: true,
  29. pathRewrite: {
  30. '^/open-API' : ''
  31. }
  32. },
  33. },
  34. },
  35. }