It’s good practice to specify which version of your static site generator you use to avoid errors and unexpected behavior. CloudCannon offers different methods to manage this based on which generator you use.
Jekyll content
CloudCannon supports Jekyll versions after 2.4.0. New sites without the version set use a default version. The version is displayed in the Status section after each build.
Set the version to avoid future breaking changes and version clashes across environments.
To set the version:
Gemfile
to the root folderjekyll
dependency to your Gemfile
source "https://rubygems.org"
gem "jekyll", "~> 4.1.1"
Hugo content
By default CloudCannon builds using Hugo version 0.96.0_extended. You can change which version of Hugo your build uses by running the install-hugo
command in a preinstall hook.
install-hugo 0.98.0
Eleventy content
CloudCannon builds with any version of Eleventy, although is focused from version v0.12.1 onward.
Since we build Eleventy sites with npx
, the latest version is run unless specified otherwise in package.json
.
Other content
CloudCannon uses the version you specify for your SSG with npm
or another package manager.