// let hosts = ""; // let hosts = "http://192.168.31.157:8080"; //汪星球 // let hosts = "http://192.168.31.196:8080"; //于嘉诺 let hosts = "http://118.178.178.185"; //测试环境 module.exports = { "/rd": { //代理到本地后端服务 target: hosts, changeOrigin: true, }, // 本地通过host映射到127.0.0.1连接到测试环境进行调试时使用,需要先注释host,登录后再解开host映射 // '/operation/backend': { // // 说明:需要修改index.js中dev配置项assetsPublicPath为assetsPublicPath: '/operation/' // target: k8s_container_addr,// upstream // changeOrigin: true, // headers: { // // Cookie: 'SHIROJSESSIONID=a966b8ef-ed04-4a5b-af7c-582a13c9043b; deviceId=D7673734-3A2A-4C9B-86C5-E621A97058E6; ecsLoginUrl=https%3A%2F%2Fbbtest.changyan.com%2Fdesktop%2FappHome%2F%23%2Fhome' // Cookie: 'SHIROJSESSIONID=0734a8e8-90f8-43b5-a412-4fe9fdb02261;' // } // }, };