mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 01:41:31 +00:00
Quick demo of using another client for some read operations. Other read operations still cause error when primary region is blocked. HPM proxying for local dev still looks to work ok. Still need to add ability to swap out endpoints in the regional endpoint.
This commit is contained in:
@@ -302,6 +302,7 @@ module.exports = function (_env = {}, argv = {}) {
|
||||
pathRewrite: { "^/proxy": "" },
|
||||
router: (req) => {
|
||||
let newTarget = req.headers["x-ms-proxy-target"];
|
||||
console.log(`Proxy path used. New target is: ${newTarget}`);
|
||||
return newTarget;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user