proxy.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. // localhost:8000/api/** -> https://preview.pro.ant.design/api/**
  12. '/sgadmin/duoduo-service': {
  13. //target: 'https://duoduoenv.sagacloud.cn/',
  14. target: 'http://10.100.28.79',
  15. changeOrigin: true,
  16. pathRewrite: {
  17. '^/sgadmin/duoduo-service': '/sgadmin/duoduo-service',
  18. },
  19. },
  20. '/sgadmin/sso': {
  21. //target: 'https://duoduoenv.sagacloud.cn/',
  22. target: 'http://10.100.28.79',
  23. changeOrigin: true,
  24. pathRewrite: {
  25. '^/sgadmin/sso': '/sgadmin/sso',
  26. },
  27. },
  28. },
  29. test: {
  30. '/api/': {
  31. target: 'http://192.168.0.14:52015/',
  32. changeOrigin: true,
  33. pathRewrite: { '^/api': '' },
  34. },
  35. },
  36. pre: {
  37. '/api/': {
  38. target: 'your pre url',
  39. changeOrigin: true,
  40. pathRewrite: { '^/api': '' },
  41. },
  42. },
  43. };