When developing with Site Studio, you will create configuration entities that should be managed using Site Studio's Package management system. Please refer to the following sub-sections of this user guide for clarification on how this differs from Drupal's core configuration workflow as well as detailed explanations on how to export and import/deploy your packages.
You must not store sensitive Site Studio credentials solely in the database. Manage credentials through environment variables in the settings.php file:
// settings.php
$config['cohesion.settings']['api_key'] = getenv('SITE_STUDIO_API_KEY');
$config['cohesion.settings']['agency_key'] = getenv('SITE_STUDIO_AGENCY_KEY');Site Studio does not automatically inject these environment variables
This approach ensures the following benefits:
Credentials survive deployment configuration synchronizations.
Version control does not include credentials.
Each environment can use its own set of keys.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.