Skip to content

Commit

Permalink
Add extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-linaro committed Jul 29, 2023
1 parent 5842ad1 commit 6f18d84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lambda-redirect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const applyRules = function(e) {

// Redirect
if (rule.redirect) {
console.log(`Redirecting to ${uri.replace(rule.regexp, rule.replace)}`);
return {
'res': {
status: rule.redirect || 301,
Expand Down

0 comments on commit 6f18d84

Please sign in to comment.