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.

19 lines
500 B

  1. module.exports = {
  2. devServer: {
  3. host: '0.0.0.0', // 允许外部访问
  4. proxy: {
  5. '/recharges': {
  6. target: 'http://192.168.8.94:5173',
  7. changeOrigin: true,
  8. pathRewrite: { '^/recharges': '' },
  9. },
  10. '/refunds': {
  11. target: 'http://192.168.8.94:5173',
  12. changeOrigin: true,
  13. pathRewrite: {
  14. '^/refunds': '/refunds'
  15. }
  16. }
  17. }
  18. }
  19. }