Reload global variables after deploy/restart

The default for context is still to use memory which doesn't survive restarts.

So what you can do is to define that for that variable you want to use memory connect store

eg

flow.set("count", 123, storeName);

see https://nodered.org/docs/writing-functions#storing-data

1 Like