How to add a favicon to a Next.js static site?

后端 未结 6 1857
既然无缘
既然无缘 2021-02-03 20:52

I\'m trying to add a favicon to a Next.js static site without much luck.

I\'ve tried customising the document with components from \'next/document\' https:/

6条回答
  •  借酒劲吻你
    2021-02-03 21:14

    As of June 2020, you don't have to add/edit the document.js or _head.js files. All you need do to is place the favicon.ico file inside the public directory and that's it.

提交回复
热议问题