We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b9a2ca commit 5aaf5dbCopy full SHA for 5aaf5db
1 file changed
src/components/Notion/Notion.tsx
@@ -1,9 +1,9 @@
1
'use client'
2
3
+import dynamic from 'next/dynamic'
4
import { LinkProps } from 'next/link'
5
import { ExtendedRecordMap } from 'notion-types'
6
import { ReactNode, useEffect, useRef } from 'react'
-import { NotionRenderer } from 'react-notion-x'
7
import { Collection } from 'react-notion-x/build/third-party/collection'
8
import Link from 'components/base/buttons/Link'
9
import Breadcrumbs from 'components/breadcrumbs/Breadcrumbs'
@@ -13,6 +13,10 @@ import { improveAccessibility } from './utils'
13
import styles from './Notion.module.css'
14
import 'react-notion-x/src/styles.css'
15
16
+const NotionRenderer = dynamic(() => import('react-notion-x').then((mod) => mod.NotionRenderer), {
17
+ ssr: false,
18
+})
19
+
20
const Notion = ({
21
title,
22
description,
0 commit comments