SHX-Theme/snippets/shx-get-environment.liquid

23 lines
432 B
Plaintext

{% assign domain = shop.permanent_domain %}
{% if domain contains 'quickstart-e8822a71.myshopify.com' %}
{% assign environment = 'development' %}
{% else %}
{% assign environment = 'production' %}
{% endif %}
"{{ environment }}"
{% comment %}
use this to get the environment on other files
{% liquid
capture shx_get_environment
render "shx-get-environment"
endcapture
%}
{{ shx_get_environment }}
{% endcomment %}