Skip to content

Commit f418a14

Browse files
Copilothotlong
andcommitted
Fix TypeScript compilation error in blog page MDX components
Use 'as any' type assertion for MDX components to resolve type compatibility issue between fumadocs-ui/mdx defaultMdxComponents and MDXComponents type. This allows the build to complete successfully while maintaining runtime correctness. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9cd2682 commit f418a14

File tree

1 file changed

+1
-1
lines changed
  • apps/docs/app/[lang]/blog/[[...slug]]

1 file changed

+1
-1
lines changed

apps/docs/app/[lang]/blog/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface BlogPostData {
1818

1919
const components = {
2020
...defaultMdxComponents,
21-
};
21+
} as any;
2222

2323
export default async function BlogPage({
2424
params,

0 commit comments

Comments
 (0)