Workers SDK Issue Reports

← Back to Dashboard

#4515 Proxy environment variables didn't work

Recommendation:KEEP OPEN
Difficulty:medium
Reasoning:

Technical solution documented; workerd supports proxies but Miniflare doesn't expose it

Suggested Action:

Implement proxy support in Miniflare

Analysis Report

Issue Review: cloudflare/workers-sdk#4515

Summary

HTTP proxy environment variables (HTTP_PROXY, HTTPS_PROXY) don't work with local wrangler dev (workerd runtime).

Findings

  • Created: 2023-11-28
  • Updated: 2025-10-30
  • Version: wrangler 3.17.1 → 4.61.0
  • Component: wrangler (dev), miniflare
  • Labels: bug
  • Comments: 4

Key Evidence

  • Wrangler says "Proxy environment variables detected" but doesn't route through proxy
  • workerd already supports HTTP proxy via capnp config (ExternalServer with http.style=proxy)
  • Just needs to be integrated into Miniflare
  • @mnixry provided detailed technical solution in comments
  • Issue was incorrectly closed as duplicate of #5162 (remote mode), but this is about local mode
  • @shunf4 suggested using fetchMock with undici.ProxyAgent

Recommendation

Status: KEEP OPEN

Reasoning: This is a valid feature gap. The technical solution is documented in comments (workerd supports proxies, just needs Miniflare integration). Issue was incorrectly closed as duplicate but reopened.

Action: Implement proxy support in Miniflare using workerd's ExternalServer proxy configuration.

Suggested Comment

N/A - Technical solution already documented in comments.

Notes & Feedback (0)

No notes yet.

Add Note