diff --git a/README.md b/README.md index a59250a..95025f7 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ if you already use wallapop and want it in the terminal, this cli gives you a pr install the binary with curl: ```bash -curl -fsSL https://raw.githubusercontent.com/Microck/wallapop-cli/main/scripts/install.sh | sh +curl -fsSL https://wallapop.micr.dev/install.sh | sh wallapop --version ``` diff --git a/docs-site/README.md b/docs-site/README.md index 3fbdf28..c67962d 100644 --- a/docs-site/README.md +++ b/docs-site/README.md @@ -1,7 +1,10 @@ # docs-site The documentation site for `wallapop-cli`, built with Fumadocs on Next.js. Deployed on Vercel -as `wallapop-cli`; the `wallapop.micr.dev` DNS record (Netlify NS1) is still missing. +as `wallapop-cli` at `https://wallapop.micr.dev`. + +`/install.sh` rewrites to `scripts/install.sh` on GitHub main. Keep the installer +in that one source file; the short URL and install examples use it directly. ```bash npm ci diff --git a/docs-site/content/docs/install.mdx b/docs-site/content/docs/install.mdx index 2126e31..949e02e 100644 --- a/docs-site/content/docs/install.mdx +++ b/docs-site/content/docs/install.mdx @@ -12,7 +12,7 @@ description: Get the binary on macOS, Linux or Windows. Installs the latest release into `~/.local/bin` (override with `WALLAPOP_INSTALL_DIR`): ```bash -curl -fsSL https://raw.githubusercontent.com/Microck/wallapop-cli/main/scripts/install.sh | sh +curl -fsSL https://wallapop.micr.dev/install.sh | sh ``` ## Homebrew diff --git a/docs-site/vercel.json b/docs-site/vercel.json index 8c9dacf..2d1319b 100644 --- a/docs-site/vercel.json +++ b/docs-site/vercel.json @@ -2,5 +2,11 @@ "$schema": "https://openapi.vercel.sh/vercel.json", "framework": "nextjs", "installCommand": "npm ci", - "buildCommand": "npm run build" + "buildCommand": "npm run build", + "rewrites": [ + { + "source": "/install.sh", + "destination": "https://raw.githubusercontent.com/Microck/wallapop-cli/main/scripts/install.sh" + } + ] }