index.config.js 772 B

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