diff --git a/binding.js b/binding.js index 6f00167a..3da3b12c 100644 --- a/binding.js +++ b/binding.js @@ -9,7 +9,7 @@ const got = require('got'); const semver = require('semver'); const tar = require('tar'); -const distBaseUrl = 'https://dl.bintray.com/lovell/sharp/'; +const distBaseUrl = process.env.SHARP_DIST_BASE_URL || 'https://dl.bintray.com/lovell/sharp/'; // Use NPM-provided environment variable where available, falling back to require-based method for Electron const minimumLibvipsVersion = process.env.npm_package_config_libvips || require('./package.json').config.libvips; diff --git a/docs/changelog.md b/docs/changelog.md index 9222f720..63ca65bb 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -14,6 +14,9 @@ Requires libvips v8.5.5. [#837](https://github.com/lovell/sharp/issues/837) [@rexxars](https://github.com/rexxars) +* Allow binary download URL override via SHARP_DIST_BASE_URL env variable. + [#841](https://github.com/lovell/sharp/issues/841) + #### v0.18.1 - 30th May 2017 * Remove regression from #781 that could cause incorrect shrink calculation.