123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * @Author: code4eat awesomedema@gmail.com
- * @Date: 2024-04-09 18:07:34
- * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2024-10-25 09:34:46
- * @FilePath: /KC-MiddlePlatform/config/proxy.ts
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- */
- const proxy: { [key: string]: any } = {
- dev: {
-
- '/gateway': {
- //target: 'http://47.96.149.190:5000',
- target: 'http://120.27.235.181:5000',
- changeOrigin: true,
- // pathRewrite: { '^/master': '' },
- },
- '/api': {
- target: 'http://120.27.235.181:8083/',
- changeOrigin: true,
- pathRewrite: { '^/api': '' },
- },
- '/view': {
- target: 'http://120.27.235.181:8085/',
- changeOrigin: true,
- // pathRewrite: { '^/view': '' },
- },
- },
- mock: {
- '/master/': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- pathRewrite: { '^': '' },
- },
- },
- };
- export default proxy;
|