env.js 927 B

12345678910111213141516171819202122232425262728293031
  1. let configs = {
  2. baseUrl: 'localhost',
  3. isProduction: false,
  4. apis: {
  5. sz: '',
  6. }
  7. };
  8. if (process.env.NODE_ENV === 'development') {
  9. // 测试环境
  10. configs = Object.assign(configs, {
  11. // baseUrl: 'http://app.sunzee.com.cn:8090/cleanMachineServer',
  12. baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
  13. // baseUrl: 'http://127.0.0.1:8090/cleanMachineServer',
  14. // baseUrl:'http://sunzee.myqnapcloud.com:8090/cleanMachineServer'
  15. // baseUrl:'http://192.168.0.184:8090/cleanMachineServer'
  16. // baseUrl: 'https://clean.sunzee.com.cn/cleanMachineServer',
  17. });
  18. }
  19. if (process.env.NODE_ENV === 'production') {
  20. // 生产环境
  21. configs = Object.assign(configs, {
  22. // baseUrl: 'https://app.sunzee.com.cn/cleanMachineServer',
  23. // baseUrl: 'http://app.sunzee.com.cn:8090/cleanMachineServer',
  24. baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
  25. // isProduction: true,
  26. });
  27. }
  28. export default configs;