“Adicione o Favicon ao próximo site estático JS” Respostas de código

Adicione o Favicon ao próximo site estático JS

1.Create a /static folder in project root. This will be added to the static export folder.
2.Add favicon file in /static folder.
3.Add _document.js to /pages/ folder according to documentation (nextjs.org) or documentation (github.com).
4.Add <link rel="shortcut icon" href="/static/favicon.ico" /> to head.
5.npm run build && npm run export
Batman

Adicione o Favicon ao próximo site estático JS

<!DOGTYPE html>
<html>
<body>
  <h1>bonjour</h1>
  </body>
  </html>
Puzzled Pony

Respostas semelhantes a “Adicione o Favicon ao próximo site estático JS”

Perguntas semelhantes a “Adicione o Favicon ao próximo site estático JS”

Procure respostas de código populares por idioma

Procurar outros idiomas de código