When working on Drupal projects I usually need to set a static front page by referencing a Node’s ID. When working with different environments chances are high that Node ID varies from environment to environment.
Luckily we can easily override any configuration value in the settings file and thus have different values in
settings.php than in
settings.local.php. It’s simple as that:
$config['system.site']['page']['front'] = '/node/1';