I have issue in new Next.js 13 beta. They removed head.js files and now (as it is written in doc) i have to use metadata in layout.ts. My favicon has name favicon.png.
How do i specify it here:
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
3
Answers
You can do it as follow:
The output will be
See all documentation regarding icons metadata:
https://beta.nextjs.org/docs/api-reference/metadata#icons
acctually this will be correct,
and then put you favicon image in that URL (_next/static/media/metadata).
in layout.tsx
and in public I have a image called favicon.png