Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(site): /get.sh installer fallback when Functions are off (#740)

xerj-orgc33f49455730
diff --git a/landing/_headers b/landing/_headers
index a35b0016e..3f517b8c3 100644
--- a/landing/_headers
+++ b/landing/_headers
@@ -56,6 +56,12 @@
Content-Type: text/plain; charset=utf-8
Cache-Control: public, max-age=300
+# /get.sh alias (#740): text/plain so the Functions-off fallback rewrite to /get
+# serves the installer as plain text, never HTML.
+/get.sh
+ Content-Type: text/plain; charset=utf-8
+ Cache-Control: public, max-age=300
+
# Agent-readable Markdown twins are alternate representations of the HTML
# articles, not HTML pages. Keep the charset explicit for direct fetches.
/answers/*.md
diff --git a/landing/_redirects b/landing/_redirects
index 7aedaac65..f026d9f0f 100644
--- a/landing/_redirects
+++ b/landing/_redirects
@@ -23,6 +23,13 @@
/bench /benchmarks/ 301
/github https://github.com/xerj-org/xerj 302
+# Installer fallback (#740). /get.sh is normally answered by functions/get.js
+# (it's in _routes.json), which counts the request and serves the installer.
+# This 200-rewrite only fires if Functions are disabled, so /get.sh serves the
+# real installer body (same file as /get) instead of falling to the SPA/404 and
+# piping HTML to sh. No drift: it points at /get, not a copy. Not a catch-all.
+/get.sh /get 200
+
# Trailing slash normalization
/home / 301