The add method allows you to add a custom Edge Node.

try {
  const customEdgeNode = 'custom_edge_node_here'; // The custom Edge Node URL to be added.
  const result = await sdk.edgeNodes.add({ edgeNode: customEdgeNode });

  console.log(result); // Response of adding the custom Edge Node
} catch (error) {
  console.error(error.message);
}

Params

  • customEdgeNode (string): The custom Edge Node to be added.