'How do I change the default timeout setting in node.js in MarkLogic Grove?

I'm developing a UI application using MarkLogic Grove (React).

I'm calling the REST API from the UI, but it times out in 2 minutes.

I want to change this timeout of 2 minutes, how can I change it on Grove?

I changed the timeout to 10 minutes in the source below and restarted, but the timeout occurred in 2 minutes.

middle-tier/grove-node-server/node-server.js

---------------------------------
…
    server.timeout = 600*1000;

    return server;
  };
  return provide;
})();


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source