diff --git a/docs/changelog.md b/docs/changelog.md index 592bca5c..49495405 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,12 @@ Requires libvips v8.7.0. +#### v0.21.1 - TBD + +* Install: support `sharp_dist_base_url` npm config, like existing `SHARP_DIST_BASE_URL`. + [#1422](https://github.com/lovell/sharp/pull/1422) + [@SethWen](https://github.com/SethWen) + #### v0.21.0 - 4th October 2018 * Deprecate the following resize-related functions: diff --git a/docs/install.md b/docs/install.md index 577cab02..e9d5cbea 100644 --- a/docs/install.md +++ b/docs/install.md @@ -218,7 +218,14 @@ you can do so via [https://github.com/lovell/sharp-libvips/releases](https://github.com/lovell/sharp-libvips/releases) Should you wish to install these from your own location, -set the `SHARP_DIST_BASE_URL` environment variable, e.g. +set the `sharp_dist_base_url` npm config option, e.g. + +```sh +npm config set sharp_dist_base_url "https://hostname/path/" +npm install sharp +``` + +or set the `SHARP_DIST_BASE_URL` environment variable, e.g. ```sh SHARP_DIST_BASE_URL="https://hostname/path/" npm install sharp