Key links

See also the Functions page for more info on Netlify Functions.

Sample

import { builder } from "@netlify/functions";

const handler = async (event, context) => {
 const content = { message: 'Hello World' };

  return {
    statusCode: 200,
    body: JSON.stringify(content),
  }
}

exports.handler = builder(handler)