I use Next.js v13.2. I want to add material-symbols to my project.
I want to use it like
<span className="material-symbols-rounded">face</span>
I found that Next.JS replaced head.js
file with Metadata but I can't find how to add CDNs. Previously I used it like this (but it didn't work correctly. On refresh it rendered icon name instead of icon itself)
// app/head.tsx
export default function Head(): JSX.Element {
return (
<>
<title>Project Name</title>
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=optional"
precedence="default"
rel="stylesheet"
precedence
/>
)
}
How can I do this?