@peron_js/web-cli 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/index.js +25 -25
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,3 +20,14 @@ web fetch <url> # fetch a URL and print its main content as Markdown
|
|
|
20
20
|
`fetch` honors the `HTTP_PROXY` / `HTTPS_PROXY` / `NO_PROXY` environment variables.
|
|
21
21
|
|
|
22
22
|
Run `web --help` or `web <command> --help` for details.
|
|
23
|
+
|
|
24
|
+
## Building
|
|
25
|
+
|
|
26
|
+
Set `PROXY_BASE` at build time to route every request through a URL-prefix proxy
|
|
27
|
+
(`<PROXY_BASE>/<url>`). Redirects are followed automatically, so the proxy must
|
|
28
|
+
rewrite any `Location` it returns to stay within the proxy. Leave it unset to
|
|
29
|
+
fetch targets directly.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
PROXY_BASE=https://proxy.example bun run build
|
|
33
|
+
```
|