twig file if-statement: if variable contains a string
{% if ‘.local’ in http_host %} <script> console.log({{ _context | json_encode | raw }}); </script> {% endif %}
{% if ‘.local’ in http_host %} <script> console.log({{ _context | json_encode | raw }}); </script> {% endif %}