fix(docs): restore the Next build — REMOVED_PROVIDERS.md has no frontmatter (base-red #12581) - #12610
Merged
Conversation
…matter (base-red #12581) `source.config.ts` feeds `docs/reference/**/*.md` to fumadocs-mdx, whose default schema requires a `title`. #12478 added `docs/reference/REMOVED_PROVIDERS.md` with no frontmatter block at all, so every production build died with: [MDX] invalid frontmatter in docs/reference/REMOVED_PROVIDERS.md: - title: Invalid input: expected string, received undefined That single missing block is what turns three release-green gates red at once — `Package artifact (npm pack policy)` fails on the build, and both `Tarball boot-smoke` and the packaged CLI checks are skipped for lack of a valid `dist/`. Fixes: - add the frontmatter block, matching the convention of its sibling reference docs (`title` / `version` / `lastUpdated`). - add `check:docs-frontmatter`, wired into `check:docs-all`, so the next doc added without a title fails in milliseconds instead of costing a full Next build and a red release branch. The gate reads its globs from `source.config.ts` rather than duplicating them, so a new docs directory cannot silently escape the check. Verified: the gate reports OK across all 122 compiled docs, fails (exit 1) when the frontmatter is removed, and `npm run check:docs-all` passes.
Owner
Author
Verification: the build is fixed end-to-endFull production build on this branch: Same command on the branch tip without this change fails with: Red discriminationThe two red checks are inherited from the base, not introduced here:
This diff touches one Markdown frontmatter block, one new gate script, and one Base-red context: #12581. |
This was referenced Sep 3, 2026
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…matter (base-red diegosouzapw#12581) (diegosouzapw#12610) `source.config.ts` feeds `docs/reference/**/*.md` to fumadocs-mdx, whose default schema requires a `title`. diegosouzapw#12478 added `docs/reference/REMOVED_PROVIDERS.md` with no frontmatter block at all, so every production build died with: [MDX] invalid frontmatter in docs/reference/REMOVED_PROVIDERS.md: - title: Invalid input: expected string, received undefined That single missing block is what turns three release-green gates red at once — `Package artifact (npm pack policy)` fails on the build, and both `Tarball boot-smoke` and the packaged CLI checks are skipped for lack of a valid `dist/`. Fixes: - add the frontmatter block, matching the convention of its sibling reference docs (`title` / `version` / `lastUpdated`). - add `check:docs-frontmatter`, wired into `check:docs-all`, so the next doc added without a title fails in milliseconds instead of costing a full Next build and a red release branch. The gate reads its globs from `source.config.ts` rather than duplicating them, so a new docs directory cannot silently escape the check. Verified: the gate reports OK across all 122 compiled docs, fails (exit 1) when the frontmatter is removed, and `npm run check:docs-all` passes.
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
Fixes the
Package artifact (npm pack policy)hard failure behind base-red #12581 onrelease/v3.8.51, plus theTarball boot-smokefailure that cascades from it.Root cause.
source.config.tsfeedsdocs/reference/**/*.mdintodefineDocs(), and fumadocs-mdx's default frontmatter schema requires atitlestring. #12478 addeddocs/reference/REMOVED_PROVIDERS.mdwith no frontmatter block at all, so every production build dies:One missing block turns three release-green gates red at once — the build itself,
check:pack-artifact, and the boot-smoke that is skipped for lack of a validdist/.Changes
docs/reference/REMOVED_PROVIDERS.md— add the frontmatter block, matching its sibling reference docs (title/version/lastUpdated). The document's content is untouched.scripts/check/check-docs-frontmatter.mjs(new) — validate that every Markdown file fumadocs compiles carries a non-emptytitle, wired intocheck:docs-all. It reads the globs fromsource.config.tsinstead of duplicating them, so adding a docs directory there cannot silently escape the check.Why the gate, and not just the one-line fix
Nothing in the current gate set catches this: it is not a broken link, not a fabricated reference, not a docs-sync drift — it surfaces only as a generic Turbopack error at the end of a full production build. Cost of catching it here: milliseconds. Cost of catching it in CI: a full build, three red gates, and a blocked release branch.
Verification
A scan of all 122 docs matched by
source.config.tsfound this file to be the only violation, so the branch is not one fix away from the next identical failure.Refs #12581. Regression from #12478.