fix-notion-page-rss

This commit is contained in:
tangly1024.com
2023-12-07 11:11:29 +08:00
parent 4d04e7de5d
commit 7989fd0657
2 changed files with 8 additions and 6 deletions

View File

@@ -5,13 +5,14 @@ import 'katex/dist/katex.min.css'
import { mapImgUrl } from '@/lib/notion/mapImage'
import { isBrowser } from '@/lib/utils'
import { siteConfig } from '@/lib/config'
import { NotionRenderer } from 'react-notion-x'
// Notion渲染
const NotionRenderer = dynamic(() => import('react-notion-x').then(async (m) => {
return m.NotionRenderer
}), {
ssr: false
})
// const NotionRenderer = dynamic(() => import('react-notion-x').then(async (m) => {
// return m.NotionRenderer
// }), {
// ssr: false
// })
const Code = dynamic(() =>
import('react-notion-x/build/third-party/code').then(async (m) => {