NodeJS scripts timing out with 504

I am using that way, but I am using the “require” outside of the exports.run, like in your examples, i.e. you don’t put require in the exports.run = function …


var MemberGame = require("./MemberGame");


exports.run = function(request, response)
{
  var memberGame = new MemberGame();
  memberGame.hello();
  response.send(memberGame);
};