interface Map { [key: string]: any; [index: number]: any; } export default { dev: { // localhost:8000/api/** -> https://preview.pro.ant.design/api/** '/api': { target: 'https://seller-api-dev.bkbackground.com/', changeOrigin: true, pathRewrite: { ['^/api']: '/', }, }, '/bkbupload': { target: 'https://upload-service-dev.bkbackground.com/', changeOrigin: true, pathRewrite: { ['^/bkbupload']: '/', }, }, }, // /** // * @name 详细的代理配置 // * @doc https://github.com/chimurai/http-proxy-middleware // */ // test: { // '/api/': { // target: 'https://proapi.azurewebsites.net', // changeOrigin: true, // pathRewrite: { '^': '' }, // }, // }, // pre: { // '/api/': { // target: 'your pre url', // changeOrigin: true, // pathRewrite: { '^': '' }, // }, // }, };