This question already has an answer here:

Is there a way to disable certain modules on different environments from settings.php or another means in Drupal 8?

For example, if I am not on prod, I don't want XML Sitemap enabled.

marked as duplicate by Clive Jan 20 '17 at 19:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • This is pretty much covered by the dupe but it could do with some new answers so I stuck a bounty on it – Clive Jan 20 '17 at 19:02
  • Yeah, I just saw it pop up. – Kevin Jan 20 '17 at 19:03

Browse other questions tagged or ask your own question.