Using Google Fonts with Next.js (typescript)
To add a google font to an Next.js application, create a Custom Document ( _document.tsx in the pages folder), and copy from google fonts
// pages/_document.tsx
import Document, {
DocumentContext,
DocumentInitialProps,
Html,
Head,
...
cherylm.hashnode.dev1 min read