Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: GoogleTag Manager 2.0.5 Minor update available for module gtm (2.0.5). Release: GoogleTag Manager 2.0.4 Minor update available for module gtm (2.0.4). Release: X-Frame-Options Allow-From webvisor.com 2.0.4 Minor update available for module xframe_allow_webvisor (2.0.4). Release: Commerce ML Starter 2.0.5 Minor update available for module cmlstarter (2.0.5). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Security Coverage: Menu Link By Default Module menu_link_by_default now has official Drupal security advisory coverage.

This recipe installs and configures the Config Split module to manage environment-specific Drupal configurations for development, staging, and production. It provides a baseline setup with pre-defined splits that can be activated by adding custom logic to your settings.php file.

A Drupal recipe that installs Config Split and creates an opinionated baseline of three environment-specific split entities (dev, staging, prod) for managing configuration across different deployment environments.

What This Recipe Provides

This recipe automates the setup of Configuration Split with pre-configured split entities for common deployment workflows:

Dev split – Enables admin tools, debugging modules, and development-focused configuration
Staging split – Contains pre-production testing configuration overrides
Prod split – Carries production-ready performance and security-related configuration

How It Works

The recipe creates three split entities with `status: false` by default. You activate the appropriate split for each environment by adding override logic in your `settings.php`:

```php
// Example: Activate the correct split based on environment
$split = getenv('DEPLOY_NAME') ?: 'dev';
$config['config_split.config_split.' . $split]['status'] = TRUE;

Split folder contents are stored under config/split/{dev,staging,prod}/ and are read by Config Split at runtime (they are not imported by this recipe).

Installation

composer require drupal/config_split_recipe

drush recipe config_split_recipe

drush cr

Post-Apply Steps

  1. Add settings.php logic to activate the correct split for your environment
  2. Populate your split folders with environment-specific configuration
  3. Test config import/export workflows across all environments
  4. Adjust split blacklists/graylists to match your project needs

Requirements

  • Drupal 10.3 or Drupal 11
  • Config Split 2.x

Important Notes

  • This is a baseline, not a fully generic Config Split toolkit
  • Split activation requires custom settings.php logic tailored to your hosting platform
  • The shipped split definitions may need adjustment for your specific project
  • Split entities are created disabled; you control when they activate

Recommended companion project:

Recipes Manager makes recipes much easier to work with in real projects because it brings recipe discovery and management into the Drupal UI. If your team wants a smoother editorial and admin workflow for applying and reviewing recipes, this is the easiest way to get it.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2026
Latest release
2 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev Jun 16, 2026