env.js 498 B

12345678910111213141516171819202122232425
  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/ShenzeeServer',
  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/ShenzeeServer',
  19. // isProduction: true,
  20. });
  21. }
  22. export default configs;