UNPKG

yunhan-cli

Version:

react17 + react-router + redux + typescript

19 lines (17 loc) 328 B
const proxySettings = { // 接口代理1 '/api/': { target: 'http://192.168.111.111:3001', changeOrigin: true, }, // 接口代理2 '/api-2/': { target: 'http://192.168.111.111:3002', changeOrigin: true, pathRewrite: { '^/api-2': '', }, }, // ..... }; module.exports = proxySettings;