File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ import 'katex/dist/katex.min.css'
5
5
import { mapImgUrl } from '@/lib/notion/mapImage'
6
6
import { isBrowser } from '@/lib/utils'
7
7
import { siteConfig } from '@/lib/config'
8
+ import { NotionRenderer } from 'react-notion-x'
8
9
9
10
// Notion渲染
10
- const NotionRenderer = dynamic ( ( ) => import ( 'react-notion-x' ) . then ( async ( m ) => {
11
- return m . NotionRenderer
12
- } ) , {
13
- ssr : false
14
- } )
11
+ // const NotionRenderer = dynamic(() => import('react-notion-x').then(async (m) => {
12
+ // return m.NotionRenderer
13
+ // }), {
14
+ // ssr: false
15
+ // })
15
16
16
17
const Code = dynamic ( ( ) =>
17
18
import ( 'react-notion-x/build/third-party/code' ) . then ( async ( m ) => {
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ import Link from 'next/link'
9
9
import { Style } from './style'
10
10
import replaceSearchResult from '@/components/Mark'
11
11
import dynamic from 'next/dynamic'
12
+ import NotionPage from '@/components/NotionPage'
13
+ // const NotionPage = dynamic(() => import('@/components/NotionPage'), { ssr: false });
12
14
13
15
// 主题组件
14
16
const BlogListScroll = dynamic ( ( ) => import ( './components/BlogListScroll' ) , { ssr : false } ) ;
15
17
const BlogArchiveItem = dynamic ( ( ) => import ( './components/BlogArchiveItem' ) , { ssr : false } ) ;
16
18
const ArticleLock = dynamic ( ( ) => import ( './components/ArticleLock' ) , { ssr : false } ) ;
17
- const NotionPage = dynamic ( ( ) => import ( '@/components/NotionPage' ) , { ssr : false } ) ;
18
19
const ArticleInfo = dynamic ( ( ) => import ( './components/ArticleInfo' ) , { ssr : false } ) ;
19
20
const Comment = dynamic ( ( ) => import ( '@/components/Comment' ) , { ssr : false } ) ;
20
21
const ArticleAround = dynamic ( ( ) => import ( './components/ArticleAround' ) , { ssr : false } ) ;
You can’t perform that action at this time.
0 commit comments