Setup eleventy serverless

This commit is contained in:
Sam Carlton 2021-07-24 13:31:28 -05:00
parent 6b2a827a11
commit f839b829f4
5 changed files with 109 additions and 81 deletions

View file

@ -1,20 +0,0 @@
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);