env.js 466 B

123456789101112131415
  1. const ENV_API_URL = {
  2. development: {
  3. url: 'https://fuyu.scapp.cn/wx-api/api',
  4. // url: 'http://192.168.0.70:7070/api',
  5. imgUrl: 'https://fuyu.scapp.cn/static/wxa/',
  6. fileUrl: 'https://fuyu.scapp.cn'
  7. // fileUrl: 'http://192.168.0.71'
  8. },
  9. production: {
  10. url: 'https://fuyu.scapp.cn/wx-api/api',
  11. imgUrl: 'https://fuyu.scapp.cn/static/wxa/',
  12. fileUrl: 'https://fuyu.scapp.cn'
  13. },
  14. }
  15. export const BASE_URL = ENV_API_URL[process.env.NODE_ENV || 'development'];