proxy.ts 848 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-01-07 10:00:52
  4. * @LastEditTime: 2022-02-14 16:17:25
  5. * @LastEditors: Please set LastEditors
  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. const proxy: { [key: string]: any } = {
  12. dev: {
  13. '/master': {
  14. target: 'http://112.124.59.133:7001/',
  15. changeOrigin: true,
  16. pathRewrite: { '^/master': '' },
  17. },
  18. '/api': {
  19. target: 'http://192.168.50.176:8083/',
  20. changeOrigin: true,
  21. pathRewrite: { '^/api': '' },
  22. },
  23. },
  24. mock: {
  25. '/master/': {
  26. target: 'http://localhost:8000',
  27. changeOrigin: true,
  28. pathRewrite: { '^': '' },
  29. },
  30. },
  31. };
  32. export default proxy;