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.
37 lines
814 B
37 lines
814 B
module.exports = {
|
|
devServer: {
|
|
// 代理配置
|
|
proxy: {
|
|
'/v': {
|
|
target: 'http://janxland.xyz/v/',
|
|
changeOrigin: true,
|
|
headers: {
|
|
Host: 'www.janxland.xyz'
|
|
},
|
|
pathRewrite: {
|
|
'/v': ''
|
|
}
|
|
},
|
|
'/api': {
|
|
target: 'http://janxland.xyz/ablaze/',
|
|
changeOrigin: true,
|
|
headers: {
|
|
Host: 'www.janxland.xyz'
|
|
},
|
|
pathRewrite: {
|
|
'/api': '/'
|
|
}
|
|
},
|
|
'/mapi163/weapi': {
|
|
target: 'http://janxland.xyz/',
|
|
changeOrigin: true,
|
|
headers: {
|
|
Host: 'www.janxland.xyz'
|
|
},
|
|
pathRewrite: {
|
|
'/mapi163/weapi': '/mapi163/weapi'
|
|
}
|
|
},
|
|
}
|
|
}
|
|
} |