index.config.js 755 B

12345678910111213141516171819202122
  1. const CONFIG = {
  2. // 开发环境配置
  3. development: {
  4. assetsPath: '/static', // 静态资源路径
  5. baseUrl: '/h5-dev-api', // 后台接口请求地址
  6. hostUrl: '', // H5地址(前端运行地址)
  7. websocketUrl: '', // websocket服务端地址
  8. weixinAppId: '', // 微信公众号appid
  9. amapKey: '' // 高德开放平台web服务key
  10. },
  11. // 生产环境配置
  12. production: {
  13. assetsPath: '/static', // 静态资源路径
  14. baseUrl: '/h5-prod-api', // 后台接口请求地址
  15. hostUrl: '', // H5地址(前端运行地址)
  16. websocketUrl: '', // websocket服务端地址
  17. weixinAppId: '', // 微信公众号appid
  18. amapKey: '' // 高德开放平台web服务key
  19. }
  20. };
  21. export default CONFIG[process.env.NODE_ENV];