proxy.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * 在生产环境 代理是无法生效的,所以这里没有生产环境的配置
  3. * The agent cannot take effect in the production environment
  4. * so there is no configuration of the production environment
  5. * For details, please see
  6. * https://pro.ant.design/docs/deploy
  7. */
  8. export default {
  9. dev: {
  10. '/jetlinks': {
  11. target: 'http://192.168.104.114:8848/',
  12. ws: 'ws://192.168.104.114:8848/',
  13. // target: 'http://192.168.22.222:8844/',
  14. // ws: 'ws://192.168.22.222:8844/',
  15. // target: 'http://water.zlkjhb.com:9000/jetlinks',
  16. // ws: 'http://water.zlkjhb.com:9000/jetlinks',
  17. // ws: 'ws://test.jetlinks.cn/jetlinks',
  18. // target: 'http://test.jetlinks.cn/jetlinks',
  19. // target: 'http://127.0.0.1:8848/',
  20. // ws: 'ws://127.0.0.1:8848/',
  21. // ws: 'ws://demo.jetlinks.cn/jetlinks',
  22. // target: 'http://demo.jetlinks.cn/jetlinks',
  23. changeOrigin: true,
  24. pathRewrite: { '^/jetlinks': '' },
  25. },
  26. },
  27. test: {
  28. '/jetlinks': {
  29. // target: 'http://192.168.3.89:8848/',
  30. target: 'http://2.jetlinks.org:9010/',
  31. changeOrigin: true,
  32. pathRewrite: { '^/jetlinks': '' },
  33. },
  34. },
  35. pre: {
  36. '/jetlinks': {
  37. // target: 'http://192.168.3.89:8848/',
  38. target: 'http://2.jetlinks.org:9010/',
  39. changeOrigin: true,
  40. pathRewrite: { '^/jetlinks': '' },
  41. },
  42. },
  43. };