Skip to content

ffaubert/netlify-edge-proxy-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Netlify Edge Function - Deno.createHttpClient Reproduction

This is a minimal reproduction repo demonstrating that Deno.createHttpClient fails in Netlify Edge Functions in production but works locally in the Netlify CLI.

The Issue

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

Steps to Reproduce

  1. Deploy this repo to Netlify
  2. Visit /test-proxy
  3. Observe the error

Expected Behavior

The edge function should successfully create an HTTP client with proxy configuration.

Actual Behavior

  • Local (netlify dev): Works correctly
  • Production: Fails with "Deno.createHttpClient is not a function"

Files

  • netlify/edge-functions/test-proxy.js - Edge function using Deno.createHttpClient
  • netlify.toml - Netlify configuration
  • public/index.html - Simple test page

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors