diff --git a/public/sites/default/all.settings.php b/public/sites/default/all.settings.php index dc48c4ed9..268137c4e 100644 --- a/public/sites/default/all.settings.php +++ b/public/sites/default/all.settings.php @@ -29,3 +29,6 @@ // Elastic proxy URL. $config['elastic_proxy.settings']['elastic_proxy_url'] = getenv('ELASTIC_PROXY_URL'); + +// Sentry DSN for React. +$config['react_search.settings']['sentry_dsn_react'] = getenv('SENTRY_DSN_REACT'); diff --git a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme index ba96a1e94..245cee852 100644 --- a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme +++ b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme @@ -71,11 +71,6 @@ function hdbt_subtheme_preprocess_views_view__project_list(&$variables) { * Implements hook_preprocess_HOOK(). */ function hdbt_subtheme_preprocess_node(array &$variables) { - $config = \Drupal::config('elastic_proxy.settings'); - if ($config->get('elastic_proxy_url')) { - $variables['#attached']['drupalSettings']['helfi_kymp_district_project_search']['elastic_proxy_url'] = $config->get('elastic_proxy_url'); - } - // On project nodes print out the districts even if they are unpublished. if ($variables['node']->getType() === 'project') { $node = $variables['node'];