-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Need re-target support like Router.
router: {
'integration.localhost:3000' : 'http://127.0.0.1:8001', // host only
'staging.localhost:3000' : 'http://127.0.0.1:8002', // host only
'localhost:3000/api' : 'http://127.0.0.1:8003', // host + path
'/rest' : 'http://127.0.0.1:8004' // path only
}
// Support custom router function (string target)
router: function(req) {
return 'http://127.0.0.1:8004';
}
In my case, target is depend on proxyReq.host
.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request