📝 Edit page
➕ Add page
Netlify Functions
JavaScript and TypeScript utilities for Netlify Functions
Key links
- 👨💻 Repo:
- 📦 Package URL: https://www.npmjs.com/package/@netlify/functions
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)