I am looking for something like this - debug code to only run on Local, not production
{{#is "local" }}
… a very confused PerplexityAI says it should work, but… it doesn’t.
Any ideas on how to check on local/prod using Handlebars / helpers?
Tx /magnus
From my recollection, Ghost doesn’t make the environment available to themes
Thanks @vikaspotluri123 - plan B, @RyanF - you made the great video on Ghost debug and {{log}} helper - any ideas on how to kick docker-Ghost into debug mode? I GTFM googled-the-*****-manual and asked the Llama, still lost.
Sorry, strike that, Perplexity70b had the answer after some prompt-wrangling:
GHOST_DEBUG: true in docker compose environment: . All good.
…and even if -d daemonized the Ghost debug shows up in Docker desktop log viewer.
I don’t think GHOST_DEBUG actually does anything
“The danger [with AI] is that you can’t tell when it’s wrong unless you already know the answer”
Pocket-calculators with infinite self-confidence. Not good.