From f2c932013dc68ecf54e171d5533cfc4e676f6884 Mon Sep 17 00:00:00 2001 From: Benjamin Bartels Date: Wed, 15 Apr 2026 18:21:01 +0100 Subject: [PATCH] Use COMPOSER_MIRROR for base URL if set --- web/installer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/installer b/web/installer index 53b32bc9..a26956fe 100644 --- a/web/installer +++ b/web/installer @@ -781,7 +781,7 @@ class Installer $this->tmpFile = $installDir.DIRECTORY_SEPARATOR.basename($this->target, '.phar').'-temp.phar'; $uriScheme = $this->disableTls ? 'http' : 'https'; - $this->baseUrl = $uriScheme.'://getcomposer.org'; + $this->baseUrl = getenv('COMPOSER_MIRROR') ?: $uriScheme.'://getcomposer.org'; } /**