|
<link rel="preconnect" href="https://fonts.googleapis.com" /> |
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin /> |
|
<link |
|
href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:opsz,wght@14..32,100..900&family=Poppins&display=swap" |
|
rel="stylesheet" |
|
/> |
Instead of hardcoding Google Fonts directly, in Next.JS it's recommended to use Next/Font.
starter-for-nextjs/src/app/layout.js
Lines 13 to 18 in 29f4675
Instead of hardcoding Google Fonts directly, in Next.JS it's recommended to use Next/Font.