This is a minimal reproduction repo demonstrating that Deno.createHttpClient fails in Netlify Edge Functions in production but works locally in the Netlify CLI.
Deno.createHttpClient is marked as Stable in Deno 2.x, but when deployed to Netlify Edge Functions, it throws:
Deno.createHttpClient is not a function
- Deploy this repo to Netlify
- Visit
/test-proxy - Observe the error
The edge function should successfully create an HTTP client with proxy configuration.
- Local (netlify dev): Works correctly
- Production: Fails with "Deno.createHttpClient is not a function"
netlify/edge-functions/test-proxy.js- Edge function usingDeno.createHttpClientnetlify.toml- Netlify configurationpublic/index.html- Simple test page