index.config.js 889 B

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