diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index c43e00c..b69ab7d 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -52,7 +52,12 @@ import styles from './styles.module.css' // } // ) -const Pdf = dynamic(() => import('react-notion-x').then((notion) => notion.Pdf)) +// TODO: PDF support via "react-pdf" package has numerous troubles building +// with next.js +// const Pdf = dynamic( +// () => import('react-notion-x').then((notion) => notion.Pdf), +// { ssr: false } +// ) const Equation = dynamic(() => import('react-notion-x').then((notion) => notion.Equation) @@ -249,7 +254,6 @@ export const NotionPage: React.FC = ({ collectionRow: CollectionRow, tweet: Tweet, modal: Modal, - pdf: Pdf, equation: Equation }} recordMap={recordMap}