Check if Statamic is in production with Antlers

Published at Sep 20, 2023

Sponsored by

unolia.com

All your domains in one place. Helps you find problems, gives you performance and security insights!


Want to sponsor this blog ? Contact me or use Github sponsor

Another short one. Although Statamic has a great documentation, sometimes I struggle finding basics things like this. So here we go, hope this helps others.

{{ if environment == "production" }}
// ... Your code
{{ /if }}
#short #statamic

Syntax highlighting provided by torchlight.dev