You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,14 +61,16 @@ const es = new EventSource('https://my-server.com/sse', {
61
61
62
62
#### HTTP/HTTPS proxy dropped
63
63
64
-
Use a package like [`node-fetch-native`](https://github.com/unjs/node-fetch-native) to add proxy support, either through environment variables or explicit configuration.
64
+
Use a package like [`undici`](https://github.com/nodejs/undici) to add proxy support, either through environment variables or explicit configuration.
65
65
66
66
```ts
67
-
// npm install node-fetch-native --save
68
-
import {fetch} from'node-fetch-native/proxy'
67
+
// npm install undici --save
68
+
import {fetch, EnvHttpProxyAgent} from'undici'
69
+
70
+
const proxyAgent =newEnvHttpProxyAgent()
69
71
70
72
const es =newEventSource('https://my-server.com/sse', {
0 commit comments