[READ-ONLY] Mirror of https://github.com/danielroe/netlify-function-repro.
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: init

Daniel Roe (Jun 23, 2021, 4:30 PM +0100) 6a8b2b0a

+19
+1
.gitignore
··· 1 + .netlify
+1
_redirects
··· 1 + /* /.netlify/functions/example 200
+17
netlify/functions/example.js
··· 1 + const deployURL = process.env.DEPLOY_URL; 2 + const buildID = process.env.BUILD_ID; 3 + 4 + module.exports.handler = async function (event) { 5 + return { 6 + statusCode: 200, 7 + headers: { 8 + "Content-Type": "application/json", 9 + }, 10 + body: JSON.stringify({ 11 + deployURL, 12 + buildID, 13 + eventHeadersHost: event.headers.host, 14 + eventPath: event.path 15 + }), 16 + }; 17 + };