feat: Add Cloudflare Workers proxy deployer and pool integration (#1360)

Co-authored-by: ansh <ansh@example.com>
This commit is contained in:
YourAnsh
2026-05-23 08:05:20 +05:30
committed by GitHub
parent 315dcaa37a
commit 13a28452fb
6 changed files with 259 additions and 7 deletions

View File

@@ -68,12 +68,12 @@ export async function resolveConnectionProxyConfig(
if (isValidPool) {
/**
* Vercel relay proxies use base URL rewriting
* Vercel/Cloudflare relay proxies use base URL rewriting
* instead of HTTP_PROXY environment variables.
*/
if (proxyPool.type === "vercel") {
if (proxyPool.type === "vercel" || proxyPool.type === "cloudflare") {
return {
source: "vercel",
source: proxyPool.type,
proxyPoolId,
proxyPool,
@@ -84,7 +84,7 @@ export async function resolveConnectionProxyConfig(
strictProxy: proxyPool.strictProxy === true,
vercelRelayUrl: proxyUrl,
vercelRelayUrl: proxyUrl, // Still mapped to vercelRelayUrl in the unified payload since they use the exact same header spec
};
}