You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
400 B

const proxy = {
"/dev/": {
target: "http://ksadmin.pyxxkj.com:8001",
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/dev/, ""),
},
"/prod/": {
target: "http://ksadmin.pyxxkj.com:8001",
changeOrigin: true,
rewrite: (path: string) => path.replace(/^\/prod/, "/api"),
},
};
const value = "dev";
const host = proxy[`/${value}/`]?.target;
export { proxy, host, value };