Skip to content

Instantly share code, notes, and snippets.

@paulmwatson
Created December 23, 2021 14:31
302 redirect
'use strict';
exports.handler = (event, context, callback) => {
var response = {
"statusCode": 302,
"headers": {
"location": "https://new-domain.tld"
},
"body": "{}",
"isBase64Encoded": false
};
callback(null, response);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment