Skip to content

Instantly share code, notes, and snippets.

@QuinnCiccoretti
Last active March 27, 2026 15:41
Show Gist options
  • Select an option

  • Save QuinnCiccoretti/e4ccabcd0ec80d2498b502ea4df433d0 to your computer and use it in GitHub Desktop.

Select an option

Save QuinnCiccoretti/e4ccabcd0ec80d2498b502ea4df433d0 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
var proxy = "PROXY 127.0.0.1:9446; DIRECT";
var direct = "DIRECT";
if (host === "dev.yext.com" ||
host === "qa.yext.com" ||
host === "yext.com" ||
host === "app.eu.yext.com" ||
host === "www.yext.com" ||
host === "dev.yextstatic.com" ||
host === "qa.yextstatic.com" ||
host === "www.yextstatic.com" ||
host === "eu.yextstatic.com") {
return proxy;
}
return direct;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment