From a0b06106f3bf6322fa9081433e3b96bc8857c8b1 Mon Sep 17 00:00:00 2001 From: tlyong1992 Date: Wed, 22 Jun 2022 12:13:51 +0800 Subject: [PATCH] =?UTF-8?q?Code=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/NotionPage.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/NotionPage.js b/components/NotionPage.js index e2e70971..1c902521 100644 --- a/components/NotionPage.js +++ b/components/NotionPage.js @@ -5,10 +5,8 @@ import React from 'react' import { isBrowser } from '@/lib/utils' import Image from 'next/image' import Link from 'next/link' +import { Code } from 'react-notion-x/build/third-party/code' -const Code = dynamic(() => - import('react-notion-x/build/third-party/code').then((m) => m.Code), { ssr: true } -) const Collection = dynamic(() => import('react-notion-x/build/third-party/collection').then((m) => m.Collection), { ssr: true } )