Documentation | 2025.1

# Development mode

Swarm has a development mode that, when enabled, changes Swarm's behavior in the following ways:

- CSS and JavaScript code is not aggregated. Each CSS or JavaScript file is fetched individually, which makes it much easier to identify where styles or functions exist and how they apply to Swarm. Due to the additional HTTP requests, development mode should not be used in production environments.
- The My Dashboard, Reviews list, Project settings, and Review display pages are written in React. These pages are minified and cannot be modified.
- Errors and exceptions that may occur are displayed in Swarm's UI. This is particularly useful to developers of Swarm modules. As the error information might disclose system paths or configuration, development mode should not be used in production environments.

If you make a configuration change, Swarm will not use it until the configuration cache has been reloaded, this forces Swarm to use the new configuration. You must be an admin or super user to reload the Swarm config cache. Navigate to the User id dropdown menu, select System Information, click the Cache Info tab, and click the Reload Configuration button.

## To enable development mode:

Adjust the `SWARM_ROOT/data/config.php` file to include:

    <?php
        return array(
            'p4' => ...
            'environment'   => array(
                'mode'  => 'development'
            )
        );

## To disable development mode:

Adjust the `SWARM_ROOT/data/config.php` file to exclude the `'mode' => 'development'` line.

Your search for returned results