Skip to content

Committing File Updates

On this page:

Loading...

Configure file updates to commit changes to specific files back to your source repository. File updates allow you to ensure that any generated files are consistent between your source repository and CloudCannon.

To configure file updates first navigate to Site Settings / Build and add a new environment variable called SYNC_PATHS. CloudCannon will use the value of this variable to determine which file’s updates should be committed when your site builds. Now set this variable to be a comma separated list of all the files you want to be updated. If you set a folder to be updated its entire contents will also be updated.

Site build settings interface
On this page:

Loading...

Don’t miss the latest
CloudCannon news freshly delivered to your inbox
Illustration of woman holding an envilope