Skip to content

Next SEO is a plugin that makes managing your SEO easier in Next. js projects. Pull requests are very welcome.

Notifications You must be signed in to change notification settings

StailiAbdessalam/Next-Seo

Repository files navigation

test

✅ 1_install next with typescript

npx create-next-app@latest --ts
# or
yarn create next-app --typescript
# or
pnpm create next-app --ts

✅ 2_install package nextseo

npm i next-seo

✅ 3_add this code a new file <next-seo.config>

export default {
  title: "your title",
  description: "your description",
  canonical: "https://www.canonical.ie/",
  openGraph: {
    url: "https://www.url.ie/a",
    title: "Open Graph Title",
    description: "Open Graph Description",
    images: [
      {
        url: "https://www.example.ie/og-image-01.jpg",
        width: 800,
        height: 600,
        alt: "Og Image Alt",
        type: "image/jpeg",
      },
      {
        url: "https://www.example.ie/og-image-02.jpg",
        width: 900,
        height: 800,
        alt: "Og Image Alt Second",
        type: "image/jpeg",
      },
      { url: "https://www.example.ie/og-image-03.jpg" },
      { url: "https://www.example.ie/og-image-04.jpg" },
    ],
    site_name: "SiteName",
  },
  twitter: {
    handle: "@handle",
    site: "@site",
    cardType: "summary_large_image",
  },
};

✅ 4_and run server

yarn run dev 

About

Next SEO is a plugin that makes managing your SEO easier in Next. js projects. Pull requests are very welcome.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published