mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 07:26:50 +00:00
减小NEXT_DATA体积
This commit is contained in:
@@ -6,7 +6,7 @@ import TianLiGPT from './TianliGPT'
|
||||
import WebWhiz from './Webwhiz'
|
||||
|
||||
import { CUSTOM_EXTERNAL_CSS, CUSTOM_EXTERNAL_JS } from '@/blog.config'
|
||||
import { mapPageUrl } from '@/lib/notion/mapPageUrl'
|
||||
import { convertInnerUrl } from '@/lib/notion/convertInnerUrl'
|
||||
import { isBrowser, loadExternalResource } from '@/lib/utils'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useEffect } from 'react'
|
||||
@@ -106,7 +106,7 @@ const ExternalPlugin = props => {
|
||||
}
|
||||
|
||||
// 映射url
|
||||
mapPageUrl(props?.allNavPages)
|
||||
convertInnerUrl(props?.allNavPages)
|
||||
}, [router])
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user