reset the rebase code
Change-Id: I50bb95e75cd5679667fb6e4053e0d1e60e28f6a5
diff --git a/config/proxy.ts b/config/proxy.ts
index a812e74..bd21b27 100644
--- a/config/proxy.ts
+++ b/config/proxy.ts
@@ -26,6 +26,21 @@
changeOrigin: true,
}
},
+ start: {
+ // localhost:5004/api/** -> https://preview.pro.ant.design/api/**
+ '/api/': {
+ // 要代理的地址
+ target: 'http://team4.10813352.xyz:5004',
+ // 配置了这个可以从 http 代理到 https
+ // 依赖 origin 的功能可能需要这个,比如 cookie
+ changeOrigin: true,
+ pathRewrite: { '^/api': '' },
+ },
+ '/profile/avatar/': {
+ target: 'http://team4.10813352.xyz:5004',
+ changeOrigin: true,
+ }
+ },
/**
* @name 详细的代理配置
@@ -39,6 +54,8 @@
pathRewrite: { '^': '' },
},
},
+
+
pre: {
'/api/': {
target: 'your pre url',