From 5dece70a2ad0aa011c9002d8eaa4afc5e6596490 Mon Sep 17 00:00:00 2001
From: Scott Anderson <scott@influxdata.com>
Date: Fri, 16 Jul 2021 13:34:29 -0600
Subject: [PATCH] hotfix: updated edge.js

---
 deploy/edge.js | 74 +++++++++++++++++++++++++-------------------------
 1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/deploy/edge.js b/deploy/edge.js
index 21d75bc50..0cc3b275b 100644
--- a/deploy/edge.js
+++ b/deploy/edge.js
@@ -7,9 +7,9 @@ const latestVersions = {
   'influxdbv2': 'v2.0',
   'telegraf': 'v1.19',
   'chronograf': 'v1.9',
-  'kapacitor': 'v1.6',
+  'kapacitor': 'v1.5',
   'enterprise': 'v1.9',
-  };
+};
 
 const archiveDomain = 'https://archive.docs.influxdata.com';
 
@@ -34,17 +34,17 @@ exports.handler = (event, context, callback) => {
     if (condition) {
       return callback(null, {
         status: '301',
-          statusDescription: 'Moved Permanently',
-          headers: {
-            'location': [{
-              key: 'Location',
-              value: newUri,
-            }],
-            'cache-control': [{
-              key: 'Cache-Control',
-              value: "max-age=3600"
-            }],
-          },
+        statusDescription: 'Moved Permanently',
+        headers: {
+          'location': [{
+            key: 'Location',
+            value: newUri,
+          }],
+          'cache-control': [{
+            key: 'Cache-Control',
+            value: "max-age=3600"
+          }],
+        },
       });
     }
   }
@@ -53,30 +53,30 @@ exports.handler = (event, context, callback) => {
   const parsedPath = path.parse(request.uri);
   const indexPath = 'index.html';
   const validExtensions = {
-      '.html': true,
-      '.css': true,
-      '.js': true,
-      '.xml': true,
-      '.png': true,
-      '.gif': true,
-      '.jpg': true,
-      '.ico': true,
-      '.svg': true,
-      '.csv': true,
-      '.txt': true,
-      '.lp': true,
-      '.json': true,
-      '.rb': true,
-      '.eot': true,
-      '.ttf': true,
-      '.woff': true,
-      '.otf': true,
-      '.gz': true,
-      '.tar': true,
-      '.zip': true,
-      '.md5': true,
-      '.sha256': true,
-    };
+    '.html': true,
+    '.css': true,
+    '.js': true,
+    '.xml': true,
+    '.png': true,
+    '.gif': true,
+    '.jpg': true,
+    '.ico': true,
+    '.svg': true,
+    '.csv': true,
+    '.txt': true,
+    '.lp': true,
+    '.json': true,
+    '.rb': true,
+    '.eot': true,
+    '.ttf': true,
+    '.woff': true,
+    '.otf': true,
+    '.gz': true,
+    '.tar': true,
+    '.zip': true,
+    '.md5': true,
+    '.sha256': true,
+  };
 
   // Remove multiple slashes from path
   // permanantRedirect(/\/{2,}/.test(request.uri), request.uri.replace(/\/{2,}/, `/`));