You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
936 B

interface Map {
[key: string]: any;
[index: number]: any;
}
export default <Map>{
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: { '^': '' },
// },
// },
};