config.js 571 B

1234567891011121314151617181920212223242526
  1. let urls = {
  2. api: '',
  3. socket: ''
  4. }
  5. if(process.env.NODE_ENV === 'development'){
  6. // 开发环境
  7. urls.api = 'http://10.155.32.18:8088'
  8. urls.socket = 'ws://10.155.32.18:8088'
  9. // urls.api = 'http://124.70.18.168:8617'
  10. // urls.socket = 'ws://124.70.18.168:8617'
  11. }else{
  12. // t2预发布环境
  13. // urls.api = 'https://t2-api.jeegen.com'
  14. // urls.socket = 'wss://t2-api.jeegen.com'
  15. // 生产环境
  16. urls.api = 'http://10.155.32.18:8088'
  17. urls.socket = 'ws://10.155.32.18:8088'
  18. // 同域
  19. // urls.api = ''
  20. // urls.socket = ''
  21. }
  22. export default urls