国外MOSE官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. // 环境配置
  2. const config = {
  3. development: {
  4. baseURL: 'http://augcl.natapp1.cc/community-admin/community',
  5. aliOSS_accessKey: 'LTAI5tQSs47izVy8DLVdwUU9',
  6. aliOSS_secretKey: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
  7. aliOSS_bucketName: 'hanhaiimage',
  8. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  9. staticDomain: 'https://image.hhlm1688.com/'
  10. },
  11. testing: {
  12. baseURL: 'https://mulinyouni.augcl.com/community-admin/community',
  13. aliOSS_accessKey: 'LTAI5tQSs47izVy8DLVdwUU9',
  14. aliOSS_secretKey: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
  15. aliOSS_bucketName: 'hanhaiimage',
  16. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  17. staticDomain: 'https://image.hhlm1688.com/'
  18. },
  19. production: {
  20. baseURL: 'https://api.escuelajs.co/api/v1',
  21. aliOSS_accessKey: null,
  22. aliOSS_secretKey: null,
  23. aliOSS_bucketName: '',
  24. endpoint: '',
  25. staticDomain: ''
  26. }
  27. }
  28. // const getConfig = () => {
  29. // // 通过process.env.NODE_ENV判断环境
  30. // const env = process.env.NODE_ENV || 'development'
  31. // console.log('env', env);
  32. // return config[env] || config.development
  33. // }
  34. // const endConfig = getConfig()
  35. export default config['testing' || process.env.NODE_ENV ]