/* * @Author: your name * @Date: 2022-01-07 10:00:52 * @LastEditTime: 2023-04-02 15:13:10 * @LastEditors: code4eat awesomedema@gmail.com * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /KC-MiddlePlatform/config/proxy.ts */ //118.31.245.65 7004 线上 //112.124.59.133 7001 测试 //192.168.50.190:7001 const proxy: { [key: string]: any } = { dev: { '/master': { target: 'http://47.97.190.5:7004', //target: 'http://118.31.245.65:7005/', changeOrigin: true, // pathRewrite: { '^/master': '' }, }, '/api': { target: 'http://47.97.190.5:8804/', changeOrigin: true, pathRewrite: { '^/api': '' }, }, '/view': { target: 'http://47.97.190.5:8807/', changeOrigin: true, pathRewrite: { '^/view': '' }, }, }, mock: { '/master/': { target: 'http://localhost:8000', changeOrigin: true, pathRewrite: { '^': '' }, }, }, }; export default proxy;