Lando Config File for Drupal
Setting up composer version
if you’re wanting to have a certain composer version for your Drupal installation, adding the code below to the config file will do. you can change it to 1 for composer 1. this can be useful for older Drupal website built with composer 1 and the server they run on use composer 1.
composer_version: 2
Setting the xDebug mode
What is the is point of using xdebug?
xdebug: false
Improve the performance of the Drupal site
Figuring how which folders aren’t needed when development and when I need to install a theme or module then i can use Lando rebuild
lando rebuild
In this project i exclude vendor and web/modules as they are usually where composer will install modules.
excludes:
- vendor
- node_modules
- modules/contrib
- web/core
- web/modules
It does show quite a bit of an improvement in the performance of the Drupal site.
How to run the composer install from the config file?
This is to ensure that the composer install is run when Lando rebuild.
run:
- composer install
How to setup the config file to work with Pantheon?
recipe: pantheon