proxy.ts 896 B

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