proxy.ts 984 B

123456789101112131415161718192021222324252627282930313233343536
  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. '/jetlinks': {
  12. target: 'http://192.168.33.222:8844/',
  13. ws: 'ws://192.168.33.222:8844/',
  14. // target: 'http://192.168.32.44:8844/',
  15. // ws: 'ws://192.168.32.44:8844/',
  16. // ws: 'ws://demo.jetlinks.cn/jetlinks',
  17. // target: 'http://demo.jetlinks.cn/jetlinks',
  18. changeOrigin: true,
  19. pathRewrite: { '^/jetlinks': '' },
  20. },
  21. },
  22. test: {
  23. '/api/': {
  24. target: 'https://preview.pro.ant.design',
  25. changeOrigin: true,
  26. pathRewrite: { '^': '' },
  27. },
  28. },
  29. pre: {
  30. '/api/': {
  31. target: 'your pre url',
  32. changeOrigin: true,
  33. pathRewrite: { '^': '' },
  34. },
  35. },
  36. };