The add
method allows you to add a custom Edge Node.
try {
const customEdgeNode = "custom_edge_node_here"; // Your Edge Node URL
const [result, error] = await sdk.edgeNodes.add({
edgeNode: customEdgeNode,
});
if (error) {
console.error("Failed to add custom Edge Node:", error);
} else {
console.log("Custom Edge Node added successfully:", result);
}
} catch (error) {
console.error(
"An unexpected error occurred while adding custom Edge Node:",
error.message
);
}
Params
customEdgeNode
(string): The custom Edge Node to be added.