Access monday storage from integrations(node.js app)

In nodejs (on the server), try this instead when you save data to storage:

const { version, success, error } = await storage.set(
	storageKey,
	JSON.stringify(payload),
	{ shared: true } // so it can be accessed on the client side
);

This will allow it to be available in the browser/on the client side too, using:

import mondaySdk from "monday-sdk-js";
const monday = mondaySdk();
const result = await monday.storage.getItem(storageKey);

And write back from the browser, using:

import mondaySdk from "monday-sdk-js";
const monday = mondaySdk();
...
const result = await monday.storage.setItem(
  storageKey, 
  JSON.stringify(payload)
);