Greetins, I'm trying to build a webconstructor. Right now my application works like that:
Thank you in advance
Yeah it is possible to render dynamic favicon and title. Using the Head component from next/head. You can also create a GenericHead component that you can use whenever you want. Something like:
import Head from 'next/head'
const GenericHead: FC<{ title?: string; favicon?: string }> = (props) => {
const { title, favicon } = props
return (
<Head>
{title ? <title>{title}</title> : <title>Document</title>}
<meta
name='description'
content='your description'
/>
<link rel='icon' href={favicon ? favicon : '/favicon.ico'} />
</Head>
)
}
You can add more things to this GenericHead, like OpenGraph meta tags. And use it whenever you want