proxy.ts 927 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:00:52
  4. * @LastEditTime: 2022-07-26 09:31:13
  5. * @LastEditors: code4eat awesomedema@gmail.com
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /KC-MiddlePlatform/config/proxy.ts
  8. */
  9. //118.31.245.65 线上
  10. //112.124.59.133 测试
  11. //192.168.50.190:7001
  12. const proxy: { [key: string]: any } = {
  13. dev: {
  14. '/master': {
  15. target: 'http://112.124.59.133:7001/',
  16. // target: 'http://112.124.59.133:7002/',
  17. changeOrigin: true,
  18. pathRewrite: { '^/master': '' },
  19. },
  20. '/api': {
  21. target: 'http://112.124.59.133:8083/',
  22. changeOrigin: true,
  23. pathRewrite: { '^/api': '' },
  24. },
  25. },
  26. mock: {
  27. '/master/': {
  28. target: 'http://localhost:8000',
  29. changeOrigin: true,
  30. pathRewrite: { '^': '' },
  31. },
  32. },
  33. };
  34. export default proxy;