I saw usages of [theme.role](https://shopify.dev/docs/api/liquid/objects#theme-role) Liquid variable to determine if the theme is in developement or prod.
Not sure if that corresponds to the store being in dev or prod.
Has anyone tried accomplishing this by adding a custom metafield to the market object (https://admin.shopify.com/store/***/settings/custom_data/market/metafields)? Perhaps a little janky, but the other objects that allow custom metafields seem to be on the user or product level (not sitewide), whereas market is kind of on the site level. Maybe could have an “environment” field on all the store’s markets that would get set differently for “production” vs “development” stores…!?
Then the liquid files can access it via: {{ localization.market.metafields.custom.environment }}