From 0c88cb485dbaf40c7cb1f71ffc23a78c4353cbc6 Mon Sep 17 00:00:00 2001 From: Taras Mankovski Date: Tue, 29 Sep 2026 20:30:15 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Say=20that=20this=20site=20lives?= =?UTF-8?q?=20at=20frontside.com/interactors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The deploy staticalized with `--base=https://interactors.netlify.app`, so every page told Google the canonical copy was the Netlify one: frontside.com/interactors/docs/quick-start frontside.com proxies this site and serves the same pages, so the two are duplicates of each other and the canonical pointed at the copy nobody links to. The page frontside.com serves was disclaiming its own content. staticalize 0.3.1 separates where a build is hosted from the url it is published at, so `--base` stays where the bytes are and `--canonical` names the address readers arrive at. A preview is then browsable on its own alias while still telling search engines to index production. `useAbsoluteUrl` already builds the canonical from the crawl origin, so staticalize rewrites it along with `og:url`; no template change is needed. The task takes staticalize from npm rather than jsr. Deno's minimum dependency age refuses a jsr version for its first 24 hours, which would block this task on the day of every staticalize release; npm resolution is not subject to it. The package publishes a `bin` rather than a `/cli` export, so the specifier loses its subpath. 0.3.1 also restored the default for `--retries`, so the flag 0.3.0 forced us to pass goes away with it. --- .github/workflows/www.yaml | 8 ++++---- www/deno.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/www.yaml b/.github/workflows/www.yaml index 7c55fc71..a01177db 100644 --- a/.github/workflows/www.yaml +++ b/.github/workflows/www.yaml @@ -51,7 +51,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.3.0/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.1/staticalize-linux.tar.gz \ -O /tmp/staticalize-linux.tar.gz tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin chmod +x /usr/local/bin/staticalize-linux @@ -62,7 +62,7 @@ jobs: --site=http://127.0.0.1:8000 \ --output=www/built \ --base=https://interactors.netlify.app \ - --retries=3 + --canonical=https://frontside.com/interactors - name: Deploy Preview to Netlify id: netlify @@ -128,7 +128,7 @@ jobs: - name: Download Staticalize run: | - wget https://github.com/thefrontside/staticalize/releases/download/v0.3.0/staticalize-linux.tar.gz \ + wget https://github.com/thefrontside/staticalize/releases/download/v0.3.1/staticalize-linux.tar.gz \ -O /tmp/staticalize-linux.tar.gz tar -xzf /tmp/staticalize-linux.tar.gz -C /usr/local/bin chmod +x /usr/local/bin/staticalize-linux @@ -139,7 +139,7 @@ jobs: --site=http://127.0.0.1:8000 \ --output=www/built \ --base=https://interactors.netlify.app \ - --retries=3 + --canonical=https://frontside.com/interactors - name: Deploy to Production run: | diff --git a/www/deno.json b/www/deno.json index 57312b7c..e9c87c32 100644 --- a/www/deno.json +++ b/www/deno.json @@ -1,7 +1,7 @@ { "tasks": { "dev": "deno run -A main.tsx", - "staticalize": "deno run -A jsr:@frontside/staticalize@0.3.0/cli --site http://localhost:8000 --output=built --base=http://localhost:8000 --retries=3" + "staticalize": "deno run -A npm:staticalize@0.3.1 --site http://localhost:8000 --output=built --base=http://localhost:8000" }, "lint": { "exclude": ["built", "tailwind"],