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.
18 lines
333 B
18 lines
333 B
1 year ago
|
// const remoteTarget = "http://10.168.1.60:8300";
|
||
|
const remoteTarget = 'http://47.109.27.8:8280/'
|
||
|
const localTarget = 'http://localhost:8300'
|
||
|
|
||
|
const devProxy = (remote) => {
|
||
|
let config = {}
|
||
|
const target = remote ? remoteTarget : localTarget
|
||
|
|
||
|
return {
|
||
|
'/api': {
|
||
|
target,
|
||
|
secure: false,
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = devProxy
|