proxy.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. '/api': {
  12. // target: 'http://192.168.32.8:8844/',
  13. // ws: 'ws://192.168.32.8:8844/',
  14. // 开发环境
  15. target: 'http://120.79.18.123:8844/',
  16. ws: 'ws://120.79.18.123:8844/',
  17. // 测试环境
  18. // target: 'http://120.77.179.54:8844/',
  19. // ws: 'ws://120.77.179.54:8844/',
  20. // target: 'http://192.168.66.5:8844/',
  21. // ws: 'ws://192.168.66.5:8844/',
  22. // ws: 'ws://demo.jetlinks.cn/jetlinks',
  23. // target: 'http://demo.jetlinks.cn/jetlinks',
  24. changeOrigin: true,
  25. pathRewrite: { '^/api': '' },
  26. },
  27. },
  28. test: {
  29. '/api/': {
  30. target: 'https://preview.pro.ant.design',
  31. changeOrigin: true,
  32. pathRewrite: { '^': '' },
  33. },
  34. },
  35. pre: {
  36. '/api/': {
  37. target: 'your pre url',
  38. changeOrigin: true,
  39. pathRewrite: { '^': '' },
  40. },
  41. },
  42. };