baseUrl.js 779 Bytes
let baseUrl = "/api"; // 本地代理
import {config} from '../../public/js/config.js'
console.log(process.env.NODE_ENV);
switch (process.env.NODE_ENV) {
  case "development":
    // baseUrl = "http://192.168.9.234:20080"; // 测试环境url
    baseUrl = config.https?"https://192.168.9.233:20070":"http://192.168.9.233:20080"; // 测试环境url
    // baseUrl = "http://192.168.9.82:8080"; // 测试环境url
    // baseUrl = "http://192.168.9.61:8086";
    // baseUrl = 'http://vion-panda.51vip.biz:52510';
    break;
  case "pre":
    baseUrl = "https://pre-server.feleti.cn"; // 预上线环境url
    break;
  case "production":
    
    baseUrl = config.https?`https://${location.host}`:`http://${location.host}`; // 生产环境url
    break;
}

export default baseUrl;