build(deps): bump fumadocs-mdx from 11.6.3 to 12.0.1#38
Closed
dependabot[bot] wants to merge 1 commit intomainfrom
Closed
build(deps): bump fumadocs-mdx from 11.6.3 to 12.0.1#38dependabot[bot] wants to merge 1 commit intomainfrom
dependabot[bot] wants to merge 1 commit intomainfrom
Conversation
Bumps [fumadocs-mdx](https://github.com/fuma-nama/fumadocs) from 11.6.3 to 12.0.1. - [Release notes](https://github.com/fuma-nama/fumadocs/releases) - [Commits](https://github.com/fuma-nama/fumadocs/compare/fumadocs-mdx@11.6.3...fumadocs-mdx@12.0.1) --- updated-dependencies: - dependency-name: fumadocs-mdx dependency-version: 12.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Additional Comments:
apps/www/app/(app)/llm/[[...slug]]/route.ts (line 20):
The code is accessing page.data.content which was removed in fumadocs-mdx 12.0.1, causing the LLM route to fail at runtime.
View Details
📝 Patch Details
diff --git a/apps/www/app/(app)/llm/[[...slug]]/route.ts b/apps/www/app/(app)/llm/[[...slug]]/route.ts
index 375f035..94d3b75 100644
--- a/apps/www/app/(app)/llm/[[...slug]]/route.ts
+++ b/apps/www/app/(app)/llm/[[...slug]]/route.ts
@@ -16,8 +16,7 @@ export async function GET(
notFound()
}
- // @ts-expect-error - revisit fumadocs types.
- return new NextResponse(page.data.content, {
+ return new NextResponse(await page.data.getText('processed'), {
headers: {
"Content-Type": "text/markdown; charset=utf-8",
},
diff --git a/apps/www/source.config.ts b/apps/www/source.config.ts
index 065ff21..2fcc26c 100644
--- a/apps/www/source.config.ts
+++ b/apps/www/source.config.ts
@@ -33,6 +33,9 @@ export default defineConfig({
export const docs = defineDocs({
dir: "../../projects",
docs: {
+ postprocess: {
+ includeProcessedMarkdown: true,
+ },
schema: frontmatterSchema.extend({
links: z
.object({
Analysis
Deprecated page.data.content causes LLM route to fail
What fails: GET handler in apps/www/app/(app)/llm/[[...slug]]/route.ts line 20 uses deprecated page.data.content property that was removed in fumadocs-mdx 12.0.1
How to reproduce:
# Build fails when the route is processed:
cd apps/www && pnpm run buildResult: Build/runtime failure due to accessing page.data.content which no longer exists per fumadocs-mdx 12.0.0 breaking changes
Expected: Should use page.data.getText('processed') method as documented in Fumadocs LLM integration guide
Contributor
Author
|
Superseded by #41. |
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.
Bumps fumadocs-mdx from 11.6.3 to 12.0.1.
Release notes
Sourced from fumadocs-mdx's releases.
... (truncated)
Commits
055858fVersion Packages (#2387)fe35b10format4b9871dMDX Async mode: read file content on load (#2394)f6dee6efeat: Preserve accent when in checked state (#2399)43cbf32TypeScript: Fix@remarksused for full instead of simplified type form65deef6Chore: Bump deps5c7d1ccexperiment Waku minimal modeaf50bc8MDX: Support customising index file output path in Vite51268ecCore: Improve Breadcrumbs API168760cfix type errorsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)