How you set global configuration in CloudCannon has changed. We recommend updating, but the previous configuration will continue to work. CloudCannon now uses specific files rather than relying on your SSG configuration files. This allows us to provide a consistent experience across SSGs as we add more. This also separates the configuration itself, making your sites more maintainable.
To migrate, create your CloudCannon configuration file with these instructions, then move your configuration here.
Many of the configuration keys are the same. You can fin these keys in the CloudCannon configuration file reference documentation. Globally-scoped configuration cascade values must also be moved to your CloudCannon configuration file.
Here are the notable changes for your specific SSG:
For Jekyll sites
CloudCannon used to read global configuration from your _config.yml file.
Base collection configuration is still automatically read from Jekyll itself. Collection settings are now set under collections_config in your global configuration file rather than in collections or cloudcannon.collections inside _config.yml. The contents are the same, except for these renamed keys. Read more about configuring your collections.
Including data files is now set in data_config in your global configuration file rather than in cloudcannon.data in _config.yml. The format is the same.
Your global uploads path is now set in paths.uploads in your global configuration file rather than in uploads_dir in _config.yml. The format is the same.
For Hugo sites
CloudCannon used to read global configuration from your config.toml file.
Base collection configuration is still automatically read from Hugo top-level content sections. Collection configuration is now set under collections_config in your global configuration file rather than in cloudcannon.collections inside config.toml. The contents are the same, except for these renamed keys. Read more about configuring your collections.
Including data files is now set in data_config in your global configuration file rather than in cloudcannon.data in config.toml. The format is the same.
Your global uploads path is now set in paths.uploads in your global configuration file rather than in uploads_dir in config.toml. The format is the same.
For Eleventy sites
CloudCannon used to read global configuration from your _data/cloudcannon.* file.
Base collection configuration is still automatically read from Eleventy itself. Collection configuration is now set under collections_config in your global configuration file rather than in collections inside _data/cloudcannon.*. The contents are the same, except for these renamed keys. Read more about configuring your collections.
By overwhelming demand, defining collection configuration no longer overrides automatically-discovered collections. If you want to restore this behavior, use the collections_config_override global setting.
Including data files is now set in data_config in your global configuration file rather than in data in _data/cloudcannon.*. The format is the same.
Your global uploads path is now set in paths.uploads in your global configuration file rather than in uploads_dir in _data/cloudcannon.*. The format is the same.
For all other sites
CloudCannon already reads global configuration from your cloudcannon.config.* file for other SSGs. There are a couple of extra renamed keys here:
collections-configtocollections_configdata-configtodata_configbase-urltobase_url
Renamed keys#
Since collection-level configuration is now always defined separately, there's no longer any risk of clashing with SSG-specific configuration. We've taken this chance to clean up and rename the configuration keys that started with underscores in an effort to reduce that risk:
_collection_groupstocollection_groups_source_editortosource_editor_subtext_keytosubtext_keyinsidecollections_config_image_keytoimage_keyinsidecollections_config_image_sizetoimage_sizeinsidecollections_config_singular_nametosingular_nameinsidecollections_config_singular_keytosingular_keyinsidecollections_config_disable_addtodisable_addinsidecollections_config_icontoiconinsidecollections_config_add_optionstoadd_optionsinsidecollections_config_sort_keytosort_keyinsidecollections_config
sort_key has been superseded by sort and sort_options has been introduced.
The remaining underscore-prefixed configuration keys are not renamed so they can be identified as part of the configuration cascade.