1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- * @Author: your name
- * @Date: 2022-01-07 10:00:52
- * @LastEditTime: 2022-07-26 09:31:13
- * @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 线上
- //112.124.59.133 测试
- //192.168.50.190:7001
- const proxy: { [key: string]: any } = {
- dev: {
- '/master': {
- target: 'http://112.124.59.133:7001/',
- // target: 'http://112.124.59.133:7002/',
- changeOrigin: true,
- pathRewrite: { '^/master': '' },
- },
- '/api': {
- target: 'http://112.124.59.133:8083/',
- changeOrigin: true,
- pathRewrite: { '^/api': '' },
- },
- },
- mock: {
- '/master/': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- };
- export default proxy;
|