proxy.ts 1.0 KB

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