env.js 775 B

1234567891011121314151617181920212223242526272829
  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: 'https://clean.sunzee.com.cn/cleanMachineServer',
  12. // baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
  13. // baseUrl: 'http://127.0.0.1:8090',
  14. });
  15. }
  16. if (process.env.NODE_ENV === 'production') {
  17. // 生产环境
  18. configs = Object.assign(configs, {
  19. // baseUrl: 'https://app.sunzee.com.cn/cleanMachineServer',
  20. // baseUrl: 'http://app.sunzee.com.cn:8090/cleanMachineServer',
  21. // baseUrl: 'https://app.sunzee.com.cn:9443/cleanMachineServer',
  22. baseUrl: 'https://clean.sunzee.com.cn/cleanMachineServer',
  23. // isProduction: true,
  24. });
  25. }
  26. export default configs;