Skip to content

Instantly share code, notes, and snippets.

@manico
Created December 31, 2019 13:42
Show Gist options
  • Save manico/19fd7ffde215033e61655f9bda070ba2 to your computer and use it in GitHub Desktop.
Save manico/19fd7ffde215033e61655f9bda070ba2 to your computer and use it in GitHub Desktop.
Lambda Event
export async function handler(event, context) {
return {
statusCode: 200,
body: JSON.stringify({
event: event,
workingDirectory: process.env.PWD,
netlifyDev: process.env.NETLIFY_DEV,
nodeEnv: process.env.NODE_ENV,
}),
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment