From 70213e7678fb6e89891f5d665ac5b4eeff1489de Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Thu, 9 Oct 2025 12:14:05 -0500 Subject: [PATCH 1/2] chore(deploy): Replaced edge.js with the latest index.js function code maintained in AWS lambda. index.js is edited to allow xml--fixes the sitemap.xml 404. --- deploy/edge.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/edge.js b/deploy/edge.js index 668cffa72..ffd6961d5 100644 --- a/deploy/edge.js +++ b/deploy/edge.js @@ -84,11 +84,15 @@ exports.handler = (event, context, callback) => { '.txt': true, '.woff': true, '.woff2': true, + '.xml': true, '.yaml': true, '.yml': true, '.zip': true, }; + // Remove multiple slashes from path + // permanentRedirect(/\/{2,}/.test(request.uri), request.uri.replace(/\/{2,}/, `/`)); + // Remove index.html from path permanentRedirect( request.uri.endsWith('index.html'), @@ -143,7 +147,7 @@ exports.handler = (event, context, callback) => { ////////////// CLI InfluxQL link (catch before latest redirect) ////////////// permanentRedirect( /\/influxdb\/latest\/query_language\/spec/.test(request.uri), - request.uri.replace(/latest/, 'v1') + request.uri.replace(/latest/, 'v1.8') ); ////////////////////////// Latest version redirects ////////////////////////// From a8b36e205a2d31317cbbc9990ee8ff305ca50197 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Thu, 9 Oct 2025 12:16:05 -0500 Subject: [PATCH 2/2] chore(robots): Add a sitemap declaration for robots --- layouts/robots.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/robots.txt b/layouts/robots.txt index 1c6ecf933..6c6e00063 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -3,4 +3,5 @@ User-agent: * {{- else }}{{ range where .Site.Pages ".Params.noindex" true }} Disallow: {{ .RelPermalink }} {{ end -}} -{{ end -}} \ No newline at end of file +{{ end -}} +Sitemap: {{ .Site.BaseURL }}sitemap.xml \ No newline at end of file