import Document , { Html , Head , Main , NextScript , DocumentProps , } from "next/document" ; class MyDocument extends Document < DocumentProps > { render ( ) { return ( < Html > < Head > < link rel = "stylesheet" href = "https://rsms.me/inter/inter.css" / > < link rel = "icon" href = "/favicon.ico" / > < /Head> < body > < Main /> < NextScript / > < /body> < /Html>); } } export default MyDocument ;