vue.config.js 705 B

12345678910111213141516171819202122232425
  1. // vue.config.js
  2. module.exports = {
  3. publicPath: './',
  4. devServer: {
  5. proxy: {
  6. [process.env.VUE_APP_BASE_API]: {
  7. // target: `http://wx.hw.hongweisoft.com/veterans/company/`,
  8. target: `http://172.16.90.64:7200/company/`,
  9. changeOrigin: true,
  10. pathRewrite: {
  11. ['^' + process.env.VUE_APP_BASE_API]: ''
  12. }
  13. },
  14. [process.env.VUE_APP_COMMON_API]: {
  15. // target: `http://wx.hw.hongweisoft.com/veterans/company/`,
  16. target: `https://wx.hw.hongweisoft.com/veterans/app/`,
  17. changeOrigin: true,
  18. pathRewrite: {
  19. ['^' + process.env.VUE_APP_COMMON_API]: ''
  20. }
  21. },
  22. },
  23. disableHostCheck: true
  24. },
  25. }