包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proxy.js 2.8 KiB

11 months ago
10 months ago
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. '/kitchbase/': {
  12. target: 'http://localhost:5001/',
  13. changeOrigin: true,
  14. secure: false, //关闭证书验证
  15. pathRewrite: {
  16. '/kitchbase/': '',
  17. },
  18. },
  19. '/groupmeal/': {
  20. //target: 'http://10.2.1.26:21995/groupmeal/',
  21. target:'http://localhost:5002/',
  22. changeOrigin: true,
  23. secure: false, //关闭证书验证
  24. pathRewrite: {
  25. '/groupmeal/': '',
  26. },
  27. },
  28. '/groupmealorder/': {
  29. target: 'http://localhost:5003/',
  30. changeOrigin: true,
  31. secure: false, //关闭证书验证
  32. pathRewrite: {
  33. '/groupmealorder/': '',
  34. },
  35. },
  36. // '/groupmeal/': {
  37. // target: 'http://10.2.1.26:21995/groupmeal/',
  38. // changeOrigin: true,
  39. // secure: false, //关闭证书验证
  40. // pathRewrite: {
  41. // '/groupmeal/': '',
  42. // },
  43. // },
  44. // Nginx发布的时候需要配置
  45. '/cos/':{
  46. target: 'https://hbl-test-1305371387.cos.ap-chengdu.myqcloud.com',
  47. changeOrigin: true,
  48. secure: false, //关闭证书验证
  49. pathRewrite: {
  50. '/cos/': '/',
  51. },
  52. }
  53. },
  54. test: {
  55. '/api/': {
  56. target: 'http://localhost:5006',
  57. changeOrigin: true,
  58. secure: false,
  59. pathRewrite: {
  60. '^': '',
  61. },
  62. },
  63. },
  64. pre: {
  65. '/api/': {
  66. target: 'http://localhost:5006',
  67. changeOrigin: true,
  68. secure: false,
  69. pathRewrite: {
  70. '^': '',
  71. },
  72. },
  73. },
  74. };
  75. // /**
  76. // * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  77. // * -------------------------------
  78. // * The agent cannot take effect in the production environment
  79. // * so there is no configuration of the production environment
  80. // * For details, please see
  81. // * https://pro.ant.design/docs/deploy
  82. // */
  83. // export default {
  84. // dev: {
  85. // '/api/': {
  86. // target: 'http://114.117.161.250:7002',
  87. // changeOrigin: true,
  88. // secure: false, //关闭证书验证
  89. // pathRewrite: {
  90. // '^': '',
  91. // },
  92. // },
  93. // },
  94. // test: {
  95. // '/api/': {
  96. // target: 'http://114.117.161.250:7002',
  97. // changeOrigin: true,
  98. // secure: false,
  99. // pathRewrite: {
  100. // '^': '',
  101. // },
  102. // },
  103. // },
  104. // pre: {
  105. // '/api/': {
  106. // target: 'http://114.117.161.250:7002',
  107. // changeOrigin: true,
  108. // secure: false,
  109. // pathRewrite: {
  110. // '^': '',
  111. // },
  112. // },
  113. // },
  114. // };