Open nozomione opened 2 months ago
Resources: Next.js: Font Module, Next.js: Global Style
In the page router, we added the link tag to the _document file for Google font (the global font) and the global styles to the _app file.
link
_document
_app
In the app router, we'll add them to the root layout and load Google font using the Next.js font module.
As stated above, add the global font and styles to the root layout.
Add the following items to the root layout:
Context
Resources: Next.js: Font Module, Next.js: Global Style
In the page router, we added the
link
tag to the_document
file for Google font (the global font) and the global styles to the_app
file.In the app router, we'll add them to the root layout and load Google font using the Next.js font module.
Problem or idea
As stated above, add the global font and styles to the root layout.
Solution or next step
Add the following items to the root layout: