env.js 647 B

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