proxy.ts 747 B

12345678910111213141516171819202122232425262728293031
  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: 'https://preview.pro.ant.design',
  13. changeOrigin: true,
  14. pathRewrite: { '^': '' },
  15. },
  16. },
  17. test: {
  18. '/api/': {
  19. target: 'https://preview.pro.ant.design',
  20. changeOrigin: true,
  21. pathRewrite: { '^': '' },
  22. },
  23. },
  24. pre: {
  25. '/api/': {
  26. target: 'your pre url',
  27. changeOrigin: true,
  28. pathRewrite: { '^': '' },
  29. },
  30. },
  31. };