Next.js favison.icon not work



if code setting favicon.ico in _document.tsx not work. Try to replace your favicon.ico file to public folder, then replacing original code to below :

<link rel="icon" type="image/x-icon" href="/favicon.ico" />