httpProxyMiddleware chaining with multipel targets #52
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
It would be great to have the possibility to chain proxy middlewares like this:
httpProxyMiddleware(req, res, {
target: process.env.target1,
pathRewrite: [{
patternStr: "^/api", replaceStr: "",
}],
}).than((response)=>httpProxyMiddleware(req, response, {
target: process.env.target2,
pathRewrite: [{
patternStr: "^/s3", replaceStr: "",
}],
}))
What is the proper way of doing this?
The text was updated successfully, but these errors were encountered: