chore: Remove DEPLOYMENT and SUBDOMAINS_ENABLED (#5742)

This commit is contained in:
Tom Moor
2023-08-28 20:39:58 -04:00
committed by GitHub
parent 7725f29dc7
commit 30a4303a8e
35 changed files with 136 additions and 135 deletions

View File

@@ -19,10 +19,10 @@ export default function fetch(
): Promise<Response> {
// In self-hosted, webhooks support proxying and are also allowed to connect
// to internal services, so use fetchWithProxy without the filtering agent.
const fetch = env.isCloudHosted() ? nodeFetch : fetchWithProxy;
const fetch = env.isCloudHosted ? nodeFetch : fetchWithProxy;
return fetch(url, {
...init,
agent: env.isCloudHosted() ? useAgent(url) : undefined,
agent: env.isCloudHosted ? useAgent(url) : undefined,
});
}