XDN Browser Cache Browser widget

What controls display of the XDN Browser Cache Browser widget?

Screen Shot 2020-10-18 at 9.13.04 PM

Should it be displayed on my live site? How do I disable it?

There are a couple options here:

  1. Set the DEBUG_SW environment variable to false (recommended)
  2. Add CSS to your page that hides the widget, like:
#xdn_sw_indicator { display: none !important; }

I have the DEBUG_SW environment variable to false

However, the widget continues to display in my production environment.

Screen Shot 2020-12-03 at 1.48.26 PM

Please advise @kevhender Thanks.

@howie.ross did you try a rebuild (i.e. new deploy) after you changed the environment variable? it won’t take effect until the next deploy.

@ianand Yes activating the Environment version triggered a deployment.

it was being overridden in webpack.config.js like this:

plugins: [
    new webpack.DefinePlugin({
      'process.env.DEBUG_SW': JSON.stringify(true),
    }),
]

seems odd that you can reset env vars like that. I would think they would be constants, no?