env.js 922 B

1234567891011121314151617181920212223242526272829303132
  1. if (process.env.NODE_ENV == 'production') {
  2. window.env = {
  3. profile: 'production',
  4. frontend: {
  5. // 前端地址
  6. baseUrl: 'http://192.168.0.181'
  7. },
  8. server: {
  9. // 后端接口网关
  10. baseUrl: 'http://192.168.0.181:8560',
  11. // baseUrl: 'http://192.168.253.58:8560',
  12. // 账户中心接口
  13. ssoUrl: 'http://192.168.253.12:32323'
  14. }
  15. }
  16. } else {
  17. window.env = {
  18. profile: 'development',
  19. frontend: {
  20. // 前端地址
  21. baseUrl: 'http://192.168.0.181'
  22. // baseUrl: 'http://127.0.0.1:1841'
  23. },
  24. server: {
  25. // 后端接口网关
  26. baseUrl: 'http://192.168.0.181:8560',
  27. // baseUrl: 'http://192.168.253.58:8560',
  28. // 账户中心接口
  29. ssoUrl: 'http://192.168.253.12:32323'
  30. }
  31. }
  32. }