Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.
Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.
You can configure CloudCannon to commit built/generated files back to your source repository. This ensures that any generated files are consistent between CloudCannon and your source repository.
For example, if your site uses
npm you may want to automatically commit
package-lock.json to your repository whenever it changes (e.g. by updating
To configure file updates:
- Navigate to Site Settings / Build
- Add a new environment variable called
- Add a comma-separated list of files and/or folders.
CloudCannon will use the value of this variable to determine which file's updates should be committed when your site builds. If you set a folder to be updated its entire contents will also be updated.