Add eleventy-builder function

This commit is contained in:
Sam Carlton 2021-07-24 13:09:13 -05:00
parent c4c0946dce
commit dcbfb35a2b

View file

@ -0,0 +1,20 @@
const { builder } = require("@netlify/functions")
async function myfunction(event, context) {
return {
statusCode: 200,
headers: {
"Content-Type": "text/html",
},
body: `
<!DOCTYPE html>
<html>
<body>
Hello World
</body>
</html>
`,
}
}
exports.handler = builder(myfunction);