TS
import Head from "next/head";const DOMAIN = "https://www.radev.tech";const DEFAULT_OG_IMAGE ="";export default function Seo({title = "Radev's Digital Space ",description = "Damian Radev is a freelance web-developer working on mostly on the front-end, writing about the web on his learning journey.",siteName = "Damian Radev",canonical = DOMAIN,ogImage = DEFAULT_OG_IMAGE,ogType = "website",twitterHandle = "@dameradev",}) {return (<Head><title key="title">{`${title} – ${siteName}`}</title><meta name="description" content={description} /><meta key="og_type" property="og:type" content={ogType} /><meta key="og_title" property="og:title" content={title} /><meta key="og_description" property="og:description" content={description} /><meta key="og_locale" property="og:locale" content="en_IE" /><meta key="og_site_name" property="og:site_name" content={siteName} /><meta key="og_url" property="og:url" content={canonical ?? DOMAIN} /><meta key="og_site_name" property="og:site_name" content={siteName} /><meta name="google-site-verification" content="WlAkywNQehSxEY1-hPHl8-dbrKlvu3pqQXKZjGzkdBI" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" /><link rel="alternate icon" href="/favicon.ico" /><metakey="og_image"property="og:image"content={ogImage ?? DEFAULT_OG_IMAGE}/><metakey="og_image:alt"property="og:image:alt"content={`${title} | ${siteName}`}/><meta key="og_image:width" property="og:image:width" content="1200" /><meta key="og_image:height" property="og:image:height" content="630" /><meta name="robots" content="index,follow" /><metakey="twitter:card"name="twitter:card"content="summary_large_image"/><metakey="twitter:site"name="twitter:site"content={twitterHandle}/><metakey="twitter:creator"name="twitter:creator"content={twitterHandle}/><metakey="twitter:title"property="twitter:title"content={title}/><metakey="twitter:description"property="twitter:description"content={description}/><link rel="canonical" href={canonical ?? DOMAIN} /></Head>);}
Seo nextJS component
Quick and easy way to add SEO to any page of your NextJS website