Hi everyone,
I’m currently building a Monday App and trying to use server-side nodejs functions to:
-
Make REST calls to an external API from the frontend
-
Receive webhooks from that API
-
Upload a signed file back into Monday
Ideally, I want to host these functions directly using the serverless functions feature provided by the Monday Apps Framework.
The Problem
I’m already running into issues when trying to upload even a minimal function. For example, with this simple function:
module.exports = async function (req, res) {
res.json({ message: "Hello from server" });
};
and the following mapps.config.js configuration:
module.exports = {
functions: [
{
name: "testFunction",
entry: "./functions/testFunction.js",
runtime: "nodejs20.x",
events: [
{
eventType: "http",
method: "GET",
path: "/api/test"
}
]
}
]
};
I consistently get this error when deploying:
✖ There was an error deploying the application.
Unfortunately, I can’t find any working examples or detailed error messages to help me debug this.
My Questions
-
Is there a working example of a minimal server-side function for Monday Apps?
-
Does the function need to meet specific requirements (e.g. headers, response format)?
-
Is an
index.jsfile required for server-side functions? -
Are there known limitations or issues with deploying via
mapps code:push? -
Is it even possible to receive webhooks via
httpevents and then upload files to Monday? -
Can the entire flow — REST communication with an external API and webhook handling — be fully hosted within Monday?
I’d really appreciate any tips, examples, or insights to help get this working.
Thanks in advance!
Jan