31 lines
643 B
TypeScript
31 lines
643 B
TypeScript
const httpType = 'http://'
|
|
const proxyUrl = 'yw.iaserver.online:60006' // 代理地址设置
|
|
export default {
|
|
port: 8080,
|
|
host: true,
|
|
proxy: {
|
|
// '/api/sms/messageService': {
|
|
// target: `ws://${proxyUrl}`,
|
|
// changeOrigin: true,
|
|
// ws: true
|
|
// },
|
|
'/api': {
|
|
target: httpType + proxyUrl,
|
|
changeOrigin: true,
|
|
secure: false
|
|
},
|
|
'/config-files': {
|
|
target: httpType + proxyUrl,
|
|
secure: false
|
|
},
|
|
'/cof-web': {
|
|
target: httpType + proxyUrl,
|
|
secure: false
|
|
},
|
|
'/web-common-resource': {
|
|
target: httpType + proxyUrl,
|
|
secure: false
|
|
}
|
|
}
|
|
}
|