Commit 676b7192 authored by Gaurav Kapoor's avatar Gaurav Kapoor Committed by Gaurav Kapoor
Browse files

Issue #3261349 by gaurav.kapoor: Added example snippet in README.

parent 64db69f5
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -47,6 +47,19 @@ CONFIGURATION
 * Configure the ignition error handler at (/admin/config/development/ignition).
 * 'Enable' configuration can be used to toggle enabling/disabling.
 * 'Dark Mode' configuration can be used to enable Dark Mode for the UI.
 * Make sure ignition module is either uninstalled in production or marked
   as disabled from the configuration. You can also add a snippet like this
   in you settings.php file to achieve the same.

    if (SITE_IS_PROD) {
      $config['ignition.settings']['enable'] = FALSE;
    }

   For Acquia environments, you can use following snippet.

    if (isset($_ENV['AH_SITE_ENVIRONMENT']) && $_ENV['AH_SITE_ENVIRONMENT'] == 'prod') {
      $config['ignition.settings']['enabled'] = FALSE;
    }


MAINTAINERS