Jest tests failing when using undici fetch instead of NextJS' fetch
Unanswered
Oak rough bulletgall wasp posted this in #help-forum
Oak rough bulletgall waspOP
I am using undici's implementation of fetch API as I need to define an agent so I can fetch from behind a corporate proxy. However, when using that fetch I am getting errors regarding ReadableStream being undefined. I am wondering if instead of using the undici fetch, if I can implement the same logic using NextJS's fetch and define a dispatcher/agent for the proxy. TIA.