[AAASM-3759] 🔧 (docs): Point node-sdk canonical/OG URLs to docs.agent-assembly.com#197
Conversation
The Docusaurus site derives the emitted canonical link and OpenGraph og:url from `url` + `baseUrl`. `url` still referenced the old GitHub Pages origin (ai-agent-assembly.github.io), so the built HTML advertised stale canonical/og:url URLs even though docs now live at docs.agent-assembly.com. Repoint `url` to the custom docs domain; the hub serves this module under /node-sdk/ (unchanged `baseUrl`). GitHub Pages stays functional as a mirror since routing is baseUrl-relative. Refs AAASM-3759
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
✅ Claude Code review — APPROVE-readyCI: all 18 checks green (build, test 18/20/22/24, napi-build, module-smoke, quality, audit, coverage, CodeQL, SonarCloud). No failures. Scope vs AAASM-3759: matches exactly. Canonical + Side-effect check: no regression. Out of scope (noted, not blocking): navbar/footer cross-SDK dropdown links still use Ready to merge. — Claude Code |



Target
Docs now live at
docs.agent-assembly.com, but the node-sdk Docusaurus site still emitted itscanonicallink and OpenGraphog:urlagainst the old GitHub Pages origin (ai-agent-assembly.github.io/node-sdk/...). Search engines and link unfurlers were being pointed at the legacy mirror origin.Task summary:
Repoint the Docusaurus
urlfromhttps://ai-agent-assembly.github.iotohttps://docs.agent-assembly.com. Docusaurus derives the emitted<link rel="canonical">andog:urlfromurl+baseUrl, so this single change corrects both.baseUrlstays/node-sdk/(the path the hub serves the module under), and in-site routing isbaseUrl-relative, so the GitHub Pages deployment keeps working as a mirror.Task tickets:
Key point change (optional):
As-is:
<link rel=canonical href=https://ai-agent-assembly.github.io/node-sdk/...>To-be:
<link rel=canonical href=https://docs.agent-assembly.com/node-sdk/...>(same forog:url).Effecting Scope
Only the docs canonical/OG origin is touched. Navbar/footer cross-SDK links still point at the per-site origins and are intentionally left out of scope.
Description
website/docusaurus.config.ts: seturl: "https://docs.agent-assembly.com"(washttps://ai-agent-assembly.github.io);baseUrlunchanged (/node-sdk/).Validation
pnpm install --ignore-workspace+pnpm buildof the Docusaurus site — build green (onBrokenLinks: "throw",onBrokenAnchors: "throw"both pass; no broken internal links).rel=canonical href=https://docs.agent-assembly.com/node-sdk/...andog:url content=https://docs.agent-assembly.com/node-sdk/.... Zerogithub.iooccurrences in anycanonical/og:urltag.baseUrl-driven).🤖 Generated with Claude Code
https://claude.ai/code/session_01Cc1vBBiNxp9qLKQ5Gq85w8