Hi, I would like to ask how to provide custom settings.js to the edge device ? I would like to deploy nodered flows from the flowfuse cloud to the edge device with custom settings.js , how can i do that ?
You don’t.
All entries in the settings.js
are managed by FlowFuse
What changes were you looking to make?
I would like to access @google-cloud/pubsub library using require
through node-red function node, but in order for me to access this, I need to add this in settings.js, any idea how can i solve this ?
functionGlobalContext:
{
pubsub:require('@google-cloud/pubsub')
},
You should be loading modules using the function node, not adding them to the settings.js
https://nodered.org/docs/user-guide/writing-functions#using-the-functionexternalmodules-option
1 Like
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.