diff --git a/public/sites/default/settings.php b/public/sites/default/settings.php index 9c4012b..7d2fe92 100644 --- a/public/sites/default/settings.php +++ b/public/sites/default/settings.php @@ -365,6 +365,12 @@ function drupal_get_env(string|array $variables) : mixed { $config['helfi_search.settings']['openai_model'] = getenv('OPENAI_MODEL'); } +// Hakuvahti: +if (getenv('HAKUVAHTI_URL')) { + $config['helfi_hakuvahti.settings']['base_url'] = getenv('HAKUVAHTI_URL'); + $config['helfi_hakuvahti.settings']['api_key'] = getenv('HAKUVAHTI_API_KEY'); +} + // E2E test users. We should never do this in production, so adding a failsafe // in case the environment variable would ever end up in production. if (getenv('APP_ENV') !== 'production' && $e2e_test_user = getenv('E2E_TEST_USER')) {