env.js 308 B

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