mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add eleventy-builder function
This commit is contained in:
parent
c4c0946dce
commit
dcbfb35a2b
1 changed files with 20 additions and 0 deletions
20
netlify/functions/eleventy-builder/eleventy-builder.js
Normal file
20
netlify/functions/eleventy-builder/eleventy-builder.js
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue