env.js 442 B

12345678910111213141516171819202122232425
  1. let configs = {
  2. baseUrl: 'localhost',
  3. isProduction: false,
  4. apis: {
  5. // sz: '/SHENZEE-SERVER',
  6. sz: '',
  7. }
  8. };
  9. if (process.env.NODE_ENV === 'development') {
  10. // 测试环境
  11. configs = Object.assign(configs, {
  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://xxx/',
  19. // isProduction: true,
  20. });
  21. }
  22. export default configs;