@peron_js/web-cli 0.5.0 → 0.6.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 +6 -4
- package/dist/index.js +72 -72
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,10 +23,12 @@ Run `web --help` or `web <command> --help` for details.
|
|
|
23
23
|
|
|
24
24
|
## Building
|
|
25
25
|
|
|
26
|
-
Set `PROXY_BASE` at build time to
|
|
27
|
-
(`<PROXY_BASE>/<url>`).
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
Set `PROXY_BASE` at build time to configure a URL-prefix proxy
|
|
27
|
+
(`<PROXY_BASE>/<url>`). `search` always routes through it; `fetch` goes direct
|
|
28
|
+
by default and opts in with `--proxy` (the flag only exists in builds
|
|
29
|
+
configured with a proxy). Redirects are followed automatically, so the proxy
|
|
30
|
+
must rewrite any `Location` it returns to stay within the proxy. Leave it unset
|
|
31
|
+
to fetch targets directly.
|
|
30
32
|
|
|
31
33
|
```bash
|
|
32
34
|
PROXY_BASE=https://proxy.example bun run build
|