Skip to content

fix(docs-site): compile the docs pages again when the packages' version changes - #332

Merged
Moltenship merged 1 commit into
mainfrom
fix/docs-install-tag-cache
Nov 26, 2026
Merged

Moltenship merged 1 commit into
mainfrom
fix/docs-install-tag-cache

Conversation

@Moltenship

Copy link
Copy Markdown
Owner

After the release of 2.0.0, time.molten.sh went on installing @next and saying "2.0 is a pre-release" on every docs page, their .md versions included, while the landing page was right.

Cause. A docs page reads differently for a pre-release than for a stable version: its install commands name @next, and its <PreRelease> blocks stay. The step that compiles a page takes that from @moltenship/calendar's package.json, which the docs' config imports in the loader's own process, outside the build's module graph. Next.js 16.4 keeps Turbopack's build cache on disk by default, and Vercel keeps it between deploys. The release commit changed the version and no page, so the build took every compiled page from the cache. The release gate builds the site in a fresh copy with no cache, so it couldn't see this.

Fix. remarkFramework names the manifest as a dependency of each page it compiles, through the loader Fumadocs puts on the file. This change alters the compiled config, which the loader already depends on, so the deploy of this PR compiles every page again.

Checked.

  • Before, on the release commit with a build cache from 2.0.0-beta.1: /docs/react/installation built with 5 @moltenship/calendar@next and the pre-release callout, and vp run showcase#search:check failed with "installs @next, but the site is built for 2.0.0".
  • With the fix, three builds on one cache: at 2.0.0 the page has none; with the version set to 2.0.0-beta.9 it has 5 and the callout; back at 2.0.0 it has none.
  • A new test checks that a compiled page declares the dependency and that the file is the calendar's manifest.
  • vp run ready passes, 34 of 34.

No review round: a small fix that its test and the production check cover.

🤖 Generated with Claude Code

…on changes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Moltenship

Copy link
Copy Markdown
Owner Author

Local gate on 43811ea: vp run ready passes (34 of 34), and vp run showcase#search:check passes on the build with the fix ("the install commands' npm tag for 2.0.0"); it failed on the same commit's build before the fix.

@Moltenship
Moltenship merged commit df670ea into main Nov 26, 2026
3 checks passed
@Moltenship
Moltenship deleted the fix/docs-install-tag-cache branch November 26, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant