proxy.ts 766 B

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