Which Node.js built-in modules are compatible with Netlify Edge Functions?
0 reputation · 01 Dec 2022, 18:46 UTC
Netlify Edge Functions utilize a Deno-based runtime to execute logic at the network edge, providing native support for TypeScript and JavaScript. This architecture allows for request interception and modification via middleware before a request reaches the origin.
Because the runtime is based on Deno rather than Node.js, there is a known discrepancy regarding the availability of standard Node.js built-in modules. When designing edge logic that requires specific system or network utilities, it is unclear which Node.js APIs are fully shimmed or natively supported within this environment.
- What is the current compatibility status of Node.js built-in modules within the Netlify Edge runtime?
- Are there specific alternatives recommended for common Node.js modules that are unsupported at the edge?