1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * @Author: your name
- * @Date: 2022-01-07 10:00:52
- * @LastEditTime: 2022-02-14 16:17:25
- * @LastEditors: Please set LastEditors
- * @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 测试
- const proxy: { [key: string]: any } = {
- dev: {
- '/master': {
- target: 'http://112.124.59.133:7001/',
- changeOrigin: true,
- pathRewrite: { '^/master': '' },
- },
- '/api': {
- target: 'http://192.168.50.176:8083/',
- changeOrigin: true,
- pathRewrite: { '^/api': '' },
- },
- },
- mock: {
- '/master/': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- };
- export default proxy;
|