Available for Jekyll sites.
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 / Build section
- Enter your new environment the JEKYLL_ENV field under Environment Variables
- Click Update Build Details
CloudCannon defaults to
production. Running Jekyll locally defaults to
To change the environment on your local machine, set it before running Jekyll:
Jekyll exposes the environment with
You can use this to create separate configurations.
Here’s a short example using variables from