We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0e92b commit 0dc9314Copy full SHA for 0dc9314
modules/cloudfront/function_rewrite/index.js.tftpl
@@ -2,7 +2,7 @@ function handler(event) {
2
var request = event.request;
3
var uri = request.uri;
4
5
- try {
+ try {
6
%{ for match, target in REDIRECTS }
7
if (/${match}/.test(uri)) {
8
return permanentRedirect(/${match}/, '${target}');
@@ -16,6 +16,7 @@ function handler(event) {
16
}
17
18
catch (e) {
19
+ // console.error is not supported
20
console.log(e);
21
22
0 commit comments