leerob / leerob.io

✨ My portfolio built with Next.js, Tailwind, and Vercel.

Home Page:https://leerob.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SEO: Double canonical tags an meta tags in header

larsroettig opened this issue · comments

I used leerob.io repo to implement SEO with next-seo on my site (repo: https://github.com/christiankozalla/nextjs-blog)

I noticed the double canonical tags recently due to your issue ;) thanks!

I fixed the double canonical tags by removing <DefaultSeo /> from _app.js because I think default styles are not overriden by other pages' SEO, or at least I don't know how.

In next-seo package I found some related issues:
garmeeh/next-seo#610
garmeeh/next-seo#544

So I worked around this by simply using no default SEO, but custom SEO on a per-page-basis`

Nice! Thank you 🙏