From 9f939759f00e62b736374aa40f85f553528a5b8b Mon Sep 17 00:00:00 2001 From: Roman Emreis <39233213+RomanEmreis@users.noreply.github.com> Date: Tue, 25 Aug 2026 21:08:29 +0400 Subject: [PATCH] Serve install scripts from ferrus.dev/cli/ Add a `_redirects` file so the site 302s /cli/install.sh and /cli/install.ps1 to the latest GitHub release assets, and point the install snippets at those short URLs. The docs no longer hardcode the release-asset URL, so an org or repo rename only needs a change in `_redirects`. The Windows command also switches from `iwr -useb | iex` to the shorter `irm | iex`. Co-Authored-By: Claude Opus 5 --- src/components/InstallTabs/index.tsx | 6 ++---- static/_redirects | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 static/_redirects diff --git a/src/components/InstallTabs/index.tsx b/src/components/InstallTabs/index.tsx index e4e4e30..857a535 100644 --- a/src/components/InstallTabs/index.tsx +++ b/src/components/InstallTabs/index.tsx @@ -15,15 +15,13 @@ const INSTALL_OPTIONS: Array<{ id: 'windows', label: 'Windows', language: 'powershell', - command: - 'iwr https://github.com/ferrus-dev/ferrus/releases/latest/download/install.ps1 -useb | iex', + command: 'irm https://ferrus.dev/cli/install.ps1 | iex', }, { id: 'unix', label: 'Linux/macOS', language: 'bash', - command: - 'curl -fsSL https://github.com/ferrus-dev/ferrus/releases/latest/download/install.sh | sh', + command: 'curl -fsSL https://ferrus.dev/cli/install.sh | sh', }, ]; diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 0000000..d81b8b4 --- /dev/null +++ b/static/_redirects @@ -0,0 +1,4 @@ +# Pretty aliases for the ferrus CLI install scripts. +# https://ferrus.dev/cli/install.sh -> latest GitHub release asset +/cli/install.sh https://github.com/ferrus-dev/ferrus/releases/latest/download/install.sh 302 +/cli/install.ps1 https://github.com/ferrus-dev/ferrus/releases/latest/download/install.ps1 302