env.js 353 B

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