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.
 
 
 

90 rivejä
2.1 KiB

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