fix(website): use desktop package version in JSON-LD softwareVersion#546
Merged
kotevcode merged 1 commit intoMay 18, 2026
Merged
Conversation
The Docusaurus head-tag JSON-LD block hardcoded `softwareVersion: '0.1.49'` while the desktop workspace ships `0.1.86` (per `apps/desktop/package.json`). Google's Rich Results, app-store-style snippets, and any LLM scraping the page for structured data therefore report a 37-version-stale value. The fix imports `apps/desktop/package.json` directly and references `desktopPkg.version` so the literal is always in sync with the real desktop release at build time. The matching `downloadUrl` already points at `…/releases/latest` so the actual download was unaffected; only the structured-data field was drifting. Repro: $ grep softwareVersion apps/website/docusaurus.config.ts # 0.1.49 $ grep '"version"' apps/desktop/package.json # 0.1.86 Acceptance: - `softwareVersion` reads from `desktopPkg.version` (no string literal). - Build still passes (Docusaurus broken-link policy is strict). - pnpm workspace topological order builds desktop before website, so the import resolves at config load time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
softwareVersion: '0.1.49'while the desktop workspace currently ships0.1.86(perapps/desktop/package.json).apps/desktop/package.jsondirectly and referencesdesktopPkg.versionso the literal stays in sync with each desktop release.downloadUrlalready points at…/releases/latest, so the actual download was unaffected — only the structured-data field was drifting.Reproduction
Testing
pnpm install+ a website build was not run in this clean worktree; native dependencies in the wider monorepo make a from-scratch install heavy.apps/websitebuild should succeed (strict broken-link policy still passes) and the rendered JSON-LD should matchapps/desktop/package.json:version.