dynamic import waline/client

This commit is contained in:
CodeMaker-Zhao
2022-12-08 16:42:53 +08:00
parent a43d8dcf12
commit b0120bfd8f
3 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
import React from 'react'
import { RecentComments } from '@waline/client'
import BLOG from '@/blog.config'
import Link from 'next/link'
import dynamic from 'next/dynamic'
const { RecentComments } = dynamic(() => import('@waline/client'))
/**
* @see https://waline.js.org/guide/get-started.html