Environment information is defined in the podspec.
Most grow commands default to use the development environment. Some grow commands allow for specifying an environment to use
by using the --deployment
flag. This allows you to do things like test builds with the environment settings from production.
Front matter tagging
You can tag front matter data based on the environment information.
title@: Title [email protected]: Title in production [email protected]: Title in staging
# Default {{doc.title}} -> Title # Prod Environment {{doc.title}} -> Title in production # Staging Environment {{doc.title}} -> Title in staging
This can also be helpful for preventing specific pages from being deployed to specific deployments.
$path: /styleguide/ [email protected]: ""