Skip to content

Functions

Trusted project code in a time-boxed process. → Functions and secrets

hello.js
export default async function handler(req) {
return { status: 200, body: { hello: req.body?.name ?? "world" } };
}

Functions → give it a name, edit the source, Deploy. Then Invoke with a JSON body; the result panel says function answered 200 … for the function’s own answer or cloud answered 5xx … for a Cloud error (timeout, bad output, missing runtime).

Names: a-z 0-9 _, up to 40 characters. Source ≤ 512 KiB; invoke body ≤ 32 KiB; 5 s timeout; two concurrent invocations per project. A function never receives a project key: pass one in the invoke body if it must reach Native.