-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d25e274
commit 257a659
Showing
5 changed files
with
1,110 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import dynamic from 'next/dynamic.js' | ||
import type { MermaidProps } from 'mdx-mermaid/lib/Mermaid' | ||
|
||
const MdxMermaid = dynamic( | ||
() => import('mdx-mermaid/lib/Mermaid').then((res) => res.Mermaid), | ||
{ ssr: false } | ||
) | ||
|
||
// Workaround for https://github.com/vercel/next.js/discussions/36369 | ||
// Inspired by https://github.com/datopian/datahub/blob/8feb87739ddaeb07272666d4c11d50774a583e57/packages/core/src/ui/Mermaid/Mermaid.tsx#L12 | ||
export const Mermaid: React.FC<MermaidProps> = ({ ...props }) => { | ||
return <MdxMermaid {...props} /> | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.
257a659
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bluprince13-next – ./
bluprince13-next-git-main-vipin-ajayakumars-projects.vercel.app
bluprince13-next.vercel.app
bluprince13-next-vipin-ajayakumars-projects.vercel.app
bluprince13.com
www.bluprince13.com