How do I disable Sweet Spot?

A question came up from a customer where some customizations were not working well with Sugar 7.6 which they believe was due to Sweet Spot.  However, there could be other reasons you may want to prevent Sweet Spot code from being loaded.
How can I disable Sweet Spot in my Sugar 7.6 instance?
  • The following applies to Sugar 7.6 which is currently the latest version.

    Sweet Spot is loaded into browser client on startup via setting in cache/config.js.   

     
    (function(app){
        app.augment("config",
        {
            "appId": "SugarCRM",
            "env": "prod",
            "platform": "base",
            "additionalComponents": {
                "header": {
                    "target": "#header",
                    "layout": "header"
                },
                "footer": {
                    "target": "#footer",
                    "layout": "footer"
                },
                "drawer": {
                    "target": "#drawers",
                    "layout": "drawer"
                },
                "sweetspot": {
                    "target": "#sweetspot",
                    "layout": "sweetspot"
                }
            },
           …
        },
        false);
    })(SUGAR.App);
     

    If we remove the “sweetspot” property in config.js then this will prevent the Sweet Spot layout from being loaded when client initially loads in the browser.

    Changes to config.js can be introduced via config_override.php

    <?php 
    $sugar_config['additional_js_config']['additionalComponents'] = array(
            'header' => array(
                'target' => '#header',
                'layout' => 'header'
            ),
            'footer' => array(
                'target' => '#footer',
                'layout' => 'footer'
            ),
            'drawer' => array(
                'target' => '#drawers',
                'layout' => 'drawer'
            ),
        ); 
     
    Then run ‘Rebuild Config File’ as Administrator or delete cache/config.js.  After that, reloading the browser should do the trick.

    App Ecosystem @ SugarCRM