index.config.js 577 B

1234567891011121314151617181920
  1. const CONFIG = {
  2. // 开发环境配置
  3. development: {
  4. assetsPath: '/static', // 静态资源路径
  5. baseUrl: 'http://120.46.209.97:8088/prod-api', // 后台接口请求地址
  6. hostUrl: '', // H5地址(前端运行地址)
  7. weixinAppId: '' // 微信公众号appid
  8. },
  9. // 生产环境配置
  10. production: {
  11. assetsPath: '/static', // 静态资源路径
  12. baseUrl: 'http://120.46.209.97:8088/prod-api', // 后台接口请求地址
  13. hostUrl: '', // H5地址(前端运行地址)
  14. weixinAppId: '' // 微信公众号appid
  15. }
  16. };
  17. export default CONFIG[process.env.NODE_ENV];