Environments allow you to use different values in your website depending on where it is deployed.
For example, you could use a different CDN for your development, staging and production sites.
To change the environment for your site:
Go to the Site Settings / Details section
Enter your new environment in Jekyll Environment
Click Update Site
This sets the JEKYLL_ENV environment variable.
CloudCannon defaults to production. Running Jekyll locally defaults to development.
To change the environment on your local machine, set it before running Jekyll:
Jekyll exposes the environment with jekyll.environment.
You can use this to create separate configurations.
Here’s a short example using variables from _config.yml: