Context set in settings.js not showing up in context window

I am successfully setting a global context variable in settings.js. I can access the global variable and use it just fine after node-red starts.

It does not show up in the Context Data window. I am just curious, should it?

By default, the sidebar does not display context set via functionGlobalContext. This is because there could be credentials or other sensitive information added in there to be available to the flow, that shouldn't be accessible otherwise.

In your settings file you should find exportGlobalContextKeys. You can change its value to true if you want to see your global context info in the sidebar.

Thanks. Changing exportGlobalContextKeys to "true" worked as expected and documented in the settings.js file. I missed it....

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.