Created
January 13, 2022 19:57
-
-
Save pirafrank/d1fe8cb2f39705fae2389210893a88d3 to your computer and use it in GitHub Desktop.
callback function to make an HTTP redirect with AWS Lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
callback(null, { | |
statusCode: 307, | |
headers: { | |
Location: 'https://github.com/pirafrank', | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment