DEV Community

Discussion on: The best way to load and use Google Fonts in Next.js + Tailwind

Collapse
 
thomasledoux1 profile image
Thomas Ledoux

Hey Marc,

I haven't tested this with pages/_app yet, but I assume it would work too since you would inject the code into the

section with next/head on every page.
Collapse
 
gabrielmlinassi profile image
Gabriel Linassi

There's an eslint rule that recommends to add it to the _document file. See nextjs.org/docs/messages/no-page-c...