Update proxy.md

This commit is contained in:
Jarred Sumner
2024-05-01 03:19:30 -07:00
parent 50ba690cad
commit 3fc2e45960

View File

@@ -17,8 +17,8 @@ The `proxy` option is a URL string that specifies the proxy server. It can inclu
---
You can also set the `$PROXY_URL` environment variable to the proxy URL. This is useful when you want to use the same proxy for all requests.
You can also set the `$HTTP_PROXY` or `$HTTPS_PROXY` environment variable to the proxy URL. This is useful when you want to use the same proxy for all requests.
```sh
PROXY_URL=https://username:password@proxy.example.com:8080 bun run index.ts
HTTPS_PROXY=https://username:password@proxy.example.com:8080 bun run index.ts
```