diff --git a/config/packages/overrides/platformsh.php b/config/packages/overrides/platformsh.php index 47a7bedd12..6ac2d6fc8d 100644 --- a/config/packages/overrides/platformsh.php +++ b/config/packages/overrides/platformsh.php @@ -105,7 +105,7 @@ } } -if (isset($relationships['solr'])) { +if (isset($relationships['solr']) && ($_SERVER['SEARCH_ENGINE'] ?? false) === 'solr') { foreach ($relationships['solr'] as $endpoint) { if ($endpoint['scheme'] !== 'solr') { continue;