Repository navigation
fix(docs-site): compile the docs pages again when the packages' version changes - #332
Merged
Merged
Conversation
…on changes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Owner
Author
|
Local gate on 43811ea: |
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.
After the release of 2.0.0, time.molten.sh went on installing
@nextand saying "2.0 is a pre-release" on every docs page, their.mdversions 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'spackage.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.
remarkFrameworknames 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.
/docs/react/installationbuilt with 5@moltenship/calendar@nextand the pre-release callout, andvp run showcase#search:checkfailed with "installs @next, but the site is built for 2.0.0".vp run readypasses, 34 of 34.No review round: a small fix that its test and the production check cover.
🤖 Generated with Claude Code