proxy.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:00:52
  4. * @LastEditTime: 2024-03-18 18:04:31
  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 7004 线上
  10. //112.124.59.133 7001 测试
  11. //192.168.50.190:7001
  12. const proxy: { [key: string]: any } = {
  13. dev: {
  14. //绩效管理
  15. '/gateway': {
  16. //target: 'http://47.96.149.190:5000',
  17. target: 'http://120.27.235.181:5000',
  18. changeOrigin: true,
  19. // pathRewrite: { '^/master': '' },
  20. },
  21. //老版评审管理
  22. '/api': {
  23. target: 'http://120.27.235.181:8083/',
  24. changeOrigin: true,
  25. pathRewrite: { '^/api': '' },
  26. },
  27. //新版评审管理
  28. '/view': {
  29. target: 'http://120.27.235.181:8085/',
  30. changeOrigin: true,
  31. // pathRewrite: { '^/view': '' },
  32. },
  33. },
  34. mock: {
  35. '/master/': {
  36. target: 'http://localhost:8000',
  37. changeOrigin: true,
  38. pathRewrite: { '^': '' },
  39. },
  40. },
  41. };
  42. export default proxy;