How come there are different UUIDs for multiple environments? We have D8 site where we use Configuration Management to export and deploy to multiple environments. We recently created a new content type, Blogs where we added a few fields (field_url, field_country). When we export this in our local development environment it all exports to yml files. 

When we push these configurations to our Dev and Test environment we are seeing that they are out of sync even after running drush @env cim. Doing further analysis we found that the UUID is different and causing the issue. 

However even if we were to export the configuration from Dev environment into our local ones, we still see that the UUID is different.

The settings.php already contains $config_directories['sync'] = 'path/to/config-folder';  

How can we get the UUIDs to be in sync? We don't have this issue with other content types nor fields.
The right way to do it is to create a config_sync folder, you can set it like this in the settings.php file.

$config_directories['sync'] = 'path/to/config-folder';


Then you can run drush cex to export current configuration, and run drush cim to import. I am doing this on all my drupal sites and have never ran into any issues.

You shall commit the config files if you are using git so you can import them on production.

UPDATE: As it is described on drupal.org the full export, on the config page is only to use if you move from one copy of a site to another.


  Or the full site configuration can also be dumped as yml files to a tar.gz file. This only works if you're moving configuration between two copies of the same site (e.g. development and production) and for that reason the sites UUIDs must match. 


Try to use the drush cex command instead.