What controls display of the XDN Browser Cache Browser widget?
Should it be displayed on my live site? How do I disable it?
What controls display of the XDN Browser Cache Browser widget?
Should it be displayed on my live site? How do I disable it?
There are a couple options here:
DEBUG_SW
environment variable to false
(recommended)#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.
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?