Skip to content

Commit

Permalink
Merge pull request #698 from City-of-Helsinki/UHF-8081-add-sentry-to-…
Browse files Browse the repository at this point in the history
…react-apps

UHF-8081: add sentry to react apps
  • Loading branch information
Jussiles authored Sep 11, 2023
2 parents 4552a0f + f55f394 commit 833d679
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
5 changes: 0 additions & 5 deletions public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 833d679

Please sign in to comment.