Override language domains configuration locally in drupal 8

When a drupal site has different domains for its language, difficulties can arise when developing locally. With the following snippet, you override your language settings, so prefixes are used instead of domains:

Add the following to your settings.php file:

$config['language.negotiation']['url']['source'] = 'prefix';

 

 

Saved you some valuable time?

Buy me a drink 🍺 to keep me motivated to create free content like this!