Last active
May 20, 2024 23:29
-
-
Save wesruv/6025f0af548e7b8fe3fe3babda41c596 to your computer and use it in GitHub Desktop.
Drupal 8, 9, & 10 Theme Dev Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Should go in /sites/localdev.services.yml, or wherever the container_yamls setting in settings.local.php is set to look for it | |
# Local development services. | |
# | |
# To activate this feature, follow the instructions at the top of the | |
# 'example.settings.local.php' file, which sits next to this file. | |
parameters: | |
http.response.debug_cacheability_headers: true | |
twig.config: | |
debug: true | |
auto_reload: true | |
services: | |
cache.backend.null: | |
class: Drupal\Core\Cache\NullBackendFactory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/localdev.services.yml'; | |
$config['system.logging']['error_level'] = 'verbose'; | |
$config['system.performance']['css']['preprocess'] = FALSE; | |
$config['system.performance']['js']['preprocess'] = FALSE; | |
$settings['cache']['bins']['render'] = 'cache.backend.null'; | |
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null'; | |
$settings['rebuild_access'] = TRUE; | |
$settings['skip_permissions_hardening'] = TRUE; | |
// Whatever other stuff, like DB and other settings |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment