Add Favicon in NextJS - geraldgsh/mv-portfolio GitHub Wiki

Create a /static folder in project root. This will be added to the static export folder.

  1. Add favicon file in /static folder.
  2. Add _document.js to /pages/ folder according to documentation (nextjs.org) or documentation (github.com).
  3. Add to head.
  4. npm run build && npm run export