proxy.js 795 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  3. * The agent cannot take effect in the production environment
  4. * so there is no configuration of the production environment
  5. * For details, please see
  6. * https://pro.ant.design/docs/deploy
  7. */
  8. export default {
  9. dev: {
  10. '/api/': {
  11. // target: 'http://cld2.com',
  12. target: 'http://cld2qa.com',
  13. changeOrigin: true,
  14. pathRewrite: {
  15. '^': ''
  16. }
  17. }
  18. },
  19. // test: {
  20. // '/api/': {
  21. // target: 'http://cld2.com:9090/login',
  22. // changeOrigin: true,
  23. // pathRewrite: {
  24. // '^': '',
  25. // },
  26. // },
  27. // },
  28. pre: {
  29. '/api/': {
  30. target: 'your pre url',
  31. changeOrigin: true,
  32. pathRewrite: {
  33. '^': ''
  34. }
  35. }
  36. }
  37. }