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:
Craig Boger (from Dev Box)
2024-02-02 16:09:54 -08:00
parent 2b4a4d0d61
commit 08a4250986
5 changed files with 217 additions and 4 deletions

View File

@@ -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;
},
},